TIMEX
TIMEX

Reputation: 271924

In Django's template engine, how do I display a datetime object in a meaningful way?

{{ p.date }}

is displayed as:

Date: 2010-10-29 21:56:39.226000

How do I make changes to how that's displayed?

Upvotes: 0

Views: 1603

Answers (2)

sprezzatura
sprezzatura

Reputation: 472

Using date filter, for eg : {{ study.created_date|date:"d/m/Y"}}

Upvotes: 5

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 798744

With the date filter.

Upvotes: 1

Related Questions