I\'m using strptime to convert a date string into a datetime. According to the linked page, formatting like this should work:
datetime
>>> # Usi
You should use strftime static method from datetime class from datetime module. Try:
strftime
import datetime dtDate = datetime.datetime.strptime("07/27/2012", "%m/%d/%Y")