[themes] Re: style date differently

david hodgkins hodgkins at gmail.com
Wed Dec 14 17:30:46 UTC 2005


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 at mediamutiny.org>
> Subject: Re: [themes] style date differently
> To: A list for theme developers <themes at drupal.org>
> Message-ID: <439FD213.8030107 at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/themes/attachments/20051214/211a4b9e/attachment.htm


More information about the themes mailing list