[Fixed]-Getting Monday , june 5 , 2016 instead of June 5 ,2016 using DateTimeField

1👍

It depends on the context. In a template you can use the date template tags:

<span>{{ my_date|date:"l, F j, Y" }}

or in Python context strftime:

my_date.strftime("%A, %B %W, %Y")

In case you just need the date (without time) you could consider using django’s models.DateField instead of models.DateTimeField

Leave a comment