Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Last active February 25, 2020 13:00
Show Gist options
  • Save quantra-go-algo/2b91a5bd42ceed6a5a982cef2e654417 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/2b91a5bd42ceed6a5a982cef2e654417 to your computer and use it in GitHub Desktop.
#Converting a string to datetime
datestr = '2018-02-14'
datetime.strptime(datestr, '%Y-%m-%d')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment