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..

 ... 
print (format_date($date->node_created));


Comments

casey’s picture

Category: task » support

have a look at http://nl3.php.net/manual/en/function.date.php

for example:

print date('l jS \of F Y h:i:s A', $data->node_created);
Apfel007’s picture

Status: Active » Closed (fixed)

thanks for that - it works.

casey’s picture

Status: Closed (fixed) » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

cookiesunshinex’s picture

That didn't work for me.

I used this instead

print date('l jS \of F Y h:i:s A', $node->created);
darafsheh’s picture

this one worked for me too.. thanks.