[themes] style date differently

erik hopp drupal at mediamutiny.org
Wed Dec 14 08:04:35 UTC 2005


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
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes


-- 
erik hopp
erik|at|mediamutiny.org

home/work: 401.621.2529
cell: 401.744.0970

268 knight street
providence, ri 02909

http://mediamutiny.org | http://quilted.org


More information about the themes mailing list