I want to save date in my django model into desired format.
post_date = str(request.POST['date'])
I am getting date from front end is 12/21/2016
i want to save this date in my django modal is like 21-Dec-2016
.
How can i do it. it will be good if you can provide some sample code.
Thanks in advance.