I've tried the following code :
import datetime
d = datetime.datetime.strptime("01/27/2012", "%m/%d/%Y")
print(d)
and the output is :
2012-01-27 00:00:00
I'm using Linux Mint :
test@testsrv ~/pythonvault $ date
Fri Jun 16 21:40:57 EEST 2017
So, the question is why the output of python code returns a date in "%Y/%m/%d" ( 2012-01-27 ) instead of "%m/%d/%Y" format?
Please note that I'm using python 2.7
Any help would be appreciated.