Last active
February 26, 2020 08:24
-
-
Save quantra-go-algo/01cebd605b59f29b738861b585855519 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Converting datetime to string | |
| my_date1 = datetime(2018,2,14) | |
| str(my_date1) | |
| # 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