From c2ba4435003694a5318cee73973070211f49fbc9 Mon Sep 17 00:00:00 2001 From: worthink Date: Tue, 17 Apr 2018 15:25:20 -0400 Subject: [PATCH] Converted date to string --- init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.py b/init.py index 27d3d86..eb9d6d7 100644 --- a/init.py +++ b/init.py @@ -297,7 +297,7 @@ def addWorkSheetFooter(start_col,calc_col_count,pad): today=datetime.datetime.now() #datetime.date(2016,3, 31) #rollback to the previous month and create a range from 2017-01-01 - 2017-01-31 _start_date=(today - relativedelta(years=1)) -start_date=datetime.date(_start_date.year, _start_date.month,1) +start_date=datetime.date(_start_date.year, _start_date.month,1).strftime('%Y-%m-%d') _end_date=(today - relativedelta(months=1)) end_date=datetime.date(_end_date.year, _end_date.month, calendar.monthrange(_end_date.year,_end_date.month)[1]).strftime('%Y-%m-%d')