Date value to different date format I have a date field. In my template I want to display the date in two different ways. I know in display I can set the format used for a date. To print the date in my template I am doing.

&lt;?php print $node-&gt;field_date[0]['view'] ?&gt;


To print as a different format I tried

&lt;?php print format_date($node-&gt;field_date[0]['timestamp'],"custom","H:i")?&gt;


However this does not seem to be showing the correct time...
We tend to use:


print format_date(strtotime($node->field_date[0]['value']), 'custom', 'H:i');


Perhaps that would work in your situation?