Download & Extend

get node_created time -> convert timestamp

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

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

Status:active» closed (fixed)

thanks for that - it works.

#3

Status:closed (fixed)» fixed

#4

Status:fixed» closed (fixed)

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

#5

That didn't work for me.

I used this instead

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

#6

this one worked for me too.. thanks.