Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Feb 2010 at 08:08 UTC
Updated:
26 May 2011 at 19:22 UTC
I have a custom node.tpl.php and I am trying to figure out how to print the date. I have a field_born cck date field, and would like to figure out the correct way to have this printed. Thanks.
Comments
Comment #1
Arkrep commentedJust in case anyone else comes across this page.
To access the raw cck date in the node.tpl.php
print $node->field_cck_dob[0]['value']To format date.
Source: http://drupal.org/node/295105
Comment #2
Arkrep commentedAfter more research there is a much easier way of displaying a date cck field in a node template..
source http://drupal.org/node/92382
Please note:
When using this method with the Devel development module enabled and there is no To date selected the From date will be displayed twice.
Comment #3
pglynn commentedI've used the following to display the date field in a node template as well:
Comment #4
choster commentedSeveral suitable alternatives give, closing.