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 does not work ;)
>
> {{ pick.date "r" }}
>
Is pick bound to a django orm model instance and date actually the name
of a field of that object? {{pick.date|date:"r"}}
Or maybe pick is holding a date directly, in which case you
want {{pick|date:"r"}}
http://docs.djangoproject.com/en/dev/ref/templates/builtins/
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=.