Opened 10 years ago

Closed 10 years ago

#6216 closed (invalid)

date filter documentation is unclear

Reported by: marystern@… Owned by: nobody
Component: Template system Version: master
Severity: Keywords: documentation
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


The date filter documentation should be updated to make it clear that it requires a *semi-colon* after 'date' (linking to the now documentation does NOT explain that this is necessary).

Using a simple example would help, eg:

Formats a date according to the given format (the format is the same as the now tag), eg {{object.pub_date|date:"d m y"}}

Change History (1)

comment:1 Changed 10 years ago by James Bennett

Resolution: invalid
Status: newclosed

The date filter works the same as any other filter which requires an argument, and the method for supplying an argument to a filter is clearly explained elsewhere. Also, you're looking for colon, not semi-colon; a sem-colon is the character ";" and a colon is the character ":".

Note: See TracTickets for help on using tickets.
Back to Top