Within your template, you can use Django’s date
filter. E.g.:
<p>Birthday: {{ birthday|date:"M d, Y" }}</p>
Gives:
Birthday: Jan 29, 1983
More formatting examples in the date filter docs.
More Related Contents:
- Rendering a template variable as HTML
- How to add url parameters to Django template url tag?
- django 1.5 – How to use variables inside static tag
- Applying bootstrap styles to django forms
- How to get the current URL within a Django template?
- Load a Django template tag library for all views by default
- Need to convert a string to int in a django template
- Is it possible to pass query parameters via Django’s {% url %} template tag?
- Use variable as dictionary key in Django template
- Variable subtraction in django templates
- How to set a value of a variable inside a template code?
- What is a context in Django?
- Django: How do I add arbitrary html attributes to input fields on a form?
- How do I add multiple arguments to my custom template filter in a django template?
- Get list item dynamically in django templates
- Django templates – split string to array
- Django Template – Increment the value of a variable
- how to embed standalone bokeh graphs into django templates
- Access kwargs from a URL in a Django template
- Django templates: value of dictionary key with a space in it
- How to access outermost forloop.counter with nested for loops in Django templates?
- Django templates: verbose version of a choice
- How to get URL of current page, including parameters, in a template?
- Django {{ MEDIA_URL }} blank @DEPRECATED
- How to iterate over nested dictionaries in django templates
- Django templates folders
- Get type of Django form widget from within template
- How do I display the value of a Django form field in a template?
- How do you limit list objects template side, rather than view side
- Django template {%for%} tag add li every 4th element