Posted by Apfel007 on July 6, 2009 at 12:12pm
Jump to:
| Project: | Views Custom Field |
| Version: | 6.x-1.0 |
| Component: | Documentation |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
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));
?>
Comments
#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.
#5
That didn't work for me.
I used this instead
<?phpprint date('l jS \of F Y h:i:s A', $node->created);
?>
#6
this one worked for me too.. thanks.