Skip to content

Instantly share code, notes, and snippets.

@Mdslino
Last active March 17, 2019 13:41
Show Gist options
  • Save Mdslino/98a9a37049da90a8878cb630250b0758 to your computer and use it in GitHub Desktop.
Save Mdslino/98a9a37049da90a8878cb630250b0758 to your computer and use it in GitHub Desktop.
Parse date string with python-dateutil
from dateutil.parser import parse
date1 = parse('2006-01-02T15:04:05)
date2 = parse('2006-01-02 15:04:05)
date3 = parse('02/01/2006 15:04:05)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment