Is there a way to display the weekday of a datetime object in a template as the actual name of the weekday? Basically I want it to print Friday
instead of 5
.
See the documentation for the built-in date
filter. From there you'll see you need to use:
l Day of the week, textual, long. 'Friday'
For clarity's sake, the template tag format character "l" (lower-case "L") can be used in the Django template like so:
{{ object.some_date_field | date:"l" }}
Django 1.8.2
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With