get node_created time -> convert timestamp
Apfel007 - July 6, 2009 - 12:12
| Project: | Views Custom Field |
| Version: | 6.x-1.0 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Hi there,
I need some little help.. I got the timestamp of a node and now I need to convert this timestamp, but how?
I tried this with now luck.. could someone point me in the right direction? I got always the same wrong node creation date..
<?php
...
print (format_date($date->node_created));
?>
#1
have a look at http://nl3.php.net/manual/en/function.date.php
for example:
<?phpprint date('l jS \of F Y h:i:s A', $data->node_created);
?>
#2
thanks for that - it works.
#3
#4
Automatically closed -- issue fixed for 2 weeks with no activity.