Changes between Initial Version and Version 4 of Ticket #31006
- Timestamp:
- Nov 23, 2019, 8:52:32 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31006
- Property Owner changed from to
- Property Status new → assigned
- Property Triage Stage Unreviewed → Accepted
- Property Summary Document how to escape a date/time format character for the |date and |time filters → Document how to escape a date/time format character for the |date and |time filters.
- Property Has patch set
-
Ticket #31006 – Description
initial v4 3 3 It's only documented as part of the [https://docs.djangoproject.com/en/dev/ref/templates/builtins/#std:templatetag-now now] template tag: 4 4 5 Note that you can backslash-escape a format string if you want to use the “raw” value. In this example, both “o” and “f” are backslash-escaped, because otherwise each is a format string that displays the year and the time, respectively: 6 It is the {% now "jS \o\f F" %} 7 This would display as “It is the 4th of September”. 8 5 > Note that you can backslash-escape a format string if you want to use the “raw” value. In this example, both “o” and “f” are backslash-escaped, because otherwise each is a format string that displays the year and the time, respectively: 6 > It is the {% now "jS \o\f F" %} 7 > This would display as “It is the 4th of September”. 9 8 10 9 Historically, the big table with all the available format characters used to be next to the documentation for `{% now %}` but it was moved at some point (to be with the documentation for `|date`.