[Fixed]-How convert Mysql datetime format "2015-10-10 10:30:59.108000" to User readable format Like "Oct. 10, 2015, 2:31 p.m"

1👍

Django DateTimeField is normalized to a python datetime and you can use the methods provided by the library to format your date. The date you see is the default one. Here is the link to the documentation:
https://docs.python.org/2/library/datetime.html#datetime.date.strftime

For your case you need:
print transac_date.strftime('%b. %d, %Y, %I:%m %p')

Leave a comment