Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By andrew-leung on
Dear all,
I noted that the "date created" field of the node table is an integer. But, how to interpret (or resolve) it into date and time. Any resource out there can guide me through this calculation? Thank you for advice.
Andrew
Comments
format_date
It's an unix timestamp and can be rendered into something nice using Drupal's format_date() function.
format_date
Hi mathias,
Thank you for your information. Do you know how to convert a date into the 11-digit timestamp? I need this function because I wish to import node with a specified date.
Thank you again.
Best regards,
aleunpkc
strtotime
http://us2.php.net/manual/en/function.strtotime.php