Skip to content

Instantly share code, notes, and snippets.

View xergioalex's full-sized avatar
🎯
Focusing

Sergio Florez xergioalex

🎯
Focusing
View GitHub Profile
@xergioalex
xergioalex / main.py
Created May 16, 2019 17:09
Create lists of days between two days in python
from datetime import datetime
from datetime import timedelta
start = '6/29/19'
end = '6/20/20'
start_date = datetime.strptime(start, '%m/%d/%y')
end_date = datetime.strptime(end, '%m/%d/%y')
days_total = (end_date - start_date).days