Hi there,
In my node articles, i need to replace the code $submitted (user having submitted + date) displayed by only the date, with the format : dd/mm/yyyy hh:mm.
Many thanks for the help.

Comments

vj’s picture

1. Go to theme folder.
2. copy node.tpl.php to node.tpl.php1(for safety)
3. open the node.tpl.php, search for print $submitted;
replace it with

     print t('Published on !datetime',
     array('!datetime' => $date));

4. refresh ur content page. It should show " Published on Thu, 11/04/2010 - 16:16 "

Hope it will work otherwise move node.tpl.php1 to node.tpl.php (it will reset ur theme as it was)

mgregoire83’s picture

What Have I to change in this code to display only " 11/04/2010 - 16:16 "
Thank tou for the help!

mgregoire83’s picture

Okay I've found the settings in Date module. Many thanks.