fork(2) download
  1. from datetime import datetime
  2.  
  3. d = datetime.strptime('28122016', '%d%m%Y')
  4.  
  5. print(d.strftime('%Y-%m-%d'))
Success #stdin #stdout 0.03s 10688KB
stdin
Standard input is empty
stdout
2016-12-28