I want to print "event_info_date" Date (Unix timestamp) field with custom format in node.tpl.php.
I'm using this code:
<?php print date("Y/m/d h:i:s", $node->event_info_date['und'][0]['value']); ?>
And it prints: 1970/01/01 01:00:00, but it isn't value from my field.
I've also tried this:
<?php print format_date($node->event_info_date['und'][0]['value'], 'custom', 'Y/m/d h:i:s'); ?>
But it doesn't print anything. Any ideas?