I'm using the Drupal API to create blog nodes.

The statement that adds the create date looks like this:

$node->created = time();

I don't want to use the current date/time but an arbitrary one, for example "May 15, 2009 17:23".

How do I get this to work?

Thanks.

Comments

slnm’s picture

Never mind. I found the various php time-related functions.