[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"


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:

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

Leave a comment