Just adding that didn't work anywhere.
I'm still open to any other suggestions....
Message: 1 Date: Wed, 14 Dec 2005 03:04:35 -0500 From: erik hopp drupal@mediamutiny.org Subject: Re: [themes] style date differently To: A list for theme developers themes@drupal.org Message-ID: 439FD213.8030107@mediamutiny.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed
try something like this:
put this at the top of the node.tpl.php or wherever you need it...
<?php format_date($node->created, 'custom', 'D M d Y') ?>
hope it helps... i actually have almost no idea what i'm talking about and its 3am!!!!!
erik.
david hodgkins wrote:
(I've spent a couple hours trying this on my own, but to no avail.)
On my theme Connections, I need to have the date styled differently. It should be: day date month year, Wed Dec 14 2005 or D M d(or j) Y
I have no idea what to change, or how to change it. (I have a funny feeling that template.php plays a roll in this.)
While I would have loved to come up with an answer on my own, I don't think I can. The documentation in the handbook is poor.
The function in the api is at http://drupaldocs.org/api/4.6/function/format_date
I'd appreciate it if someone could help me with this.
~silverwing
On 14/12/05, david hodgkins hodgkins@gmail.com wrote:
put this at the top of the node.tpl.php or wherever you need it...
<?php format_date($node->created, 'custom', 'D M d Y') ?>
Just adding that didn't work anywhere.
Because of the all-important "echo". This should work in node.tpl.php:
<?php echo format_date($node->created, 'custom', 'D M d Y'); ?>
-- David Carrington