Created
November 1, 2018 02:59
-
-
Save rrguntaka/faf0c4fe876d8383fa3da36ec7e819eb to your computer and use it in GitHub Desktop.
This file contains 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
import datetime | |
dt = datetime.datetime(2018, 1, 22) | |
end = datetime.datetime(2018, 12, 31) | |
step = datetime.timedelta(days=14) | |
result = [] | |
while dt < end: | |
result.append(dt.strftime('%d-%b-%Y')) | |
dt += step |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment