Re: time date formatting

2009-11-23 Thread David De La Harpe Golden
matches wrote: > If I want to format the current datetime for an rss feed, I do: > > {% now "r" %} > > I want to format a date the same way coming from a DB in this format > "2009-11-18 08:00:00" > > Is there a way to format it with that same "r" format from a template > level? > > This clearly

Re: time date formatting

2009-11-22 Thread Rama Vadakattu
> This clearly does not work ;) > > {{ pick.date "r" }} Why the above will not work? On Nov 21, 3:36 am, matches wrote: > If I want to format the current datetime for an rss feed, I do: > > {% now "r" %} > > I want to format a date the same way coming from a DB in this format > "2009-11-18 08:00

time date formatting

2009-11-22 Thread matches
If I want to format the current datetime for an rss feed, I do: {% now "r" %} I want to format a date the same way coming from a DB in this format "2009-11-18 08:00:00" Is there a way to format it with that same "r" format from a template level? This clearly does not work ;) {{ pick.date "r" }