SyntaxFix
Write A Post
Hire A Developer
Questions
If you can live with 01 for January instead of 1, then try...
d = datetime.datetime.strptime("2013-1-25", '%Y-%m-%d') print datetime.date.strftime(d, "%m/%d/%y")
You can check the docs for other formatting directives.