Opened 17 years ago
Closed 17 years ago
#6216 closed (invalid)
date filter documentation is unclear
Reported by: | Owned by: | nobody | |
---|---|---|---|
Component: | Template system | Version: | dev |
Severity: | Keywords: | documentation | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
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:
DATE
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"}}
Note:
See TracTickets
for help on using tickets.
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 ":".