Answer the question
In order to leave comments, you need to log in
How to make your own date format?
Good afternoon.
I have a small Flask project.
In one of the database tables - sqlite3 there is a field of type Date.
By default, it only accepts dates of the form: "2010-12-30 12:10:04.000100"
But I would like it to be in a format more familiar to the average user "12-31-2015 15:58" (%d %m %Y %H %M)
How can this be implemented?
Answer the question
In order to leave comments, you need to log in
Carelessness.
I decided:{{date.date.strftime('%d-%m-%Y %H:%M')}}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question