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

casey - July 6, 2009 - 13:09
Category:task» support request

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

for example:

<?php
print date('l jS \of F Y h:i:s A', $data->node_created);
?>

#2

Apfel007 - July 6, 2009 - 15:15
Status:active» closed

thanks for that - it works.

#3

casey - July 6, 2009 - 16:56
Status:closed» fixed

#4

System Message - July 20, 2009 - 17:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.