import datetime d = datetime.date(2009, 12, 5) print('{}/{}/{}'.format(d.day, d.month, d.year))