From 371f7e227947ee002525ccad9d0b980983f5ff7b Mon Sep 17 00:00:00 2001 From: Gourav Kumar Date: Tue, 22 Feb 2022 13:04:44 +0530 Subject: [PATCH] Added support for string dates in create_date_series --- fincal/fincal.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fincal/fincal.py b/fincal/fincal.py index ba9d9ce..a16120b 100644 --- a/fincal/fincal.py +++ b/fincal/fincal.py @@ -17,6 +17,8 @@ def create_date_series( if eomonth and frequency.days < AllFrequencies.M.days: raise ValueError(f"eomonth cannot be set to True if frequency is higher than {AllFrequencies.M.name}") + start_date = _parse_date(start_date) + end_date = _parse_date(end_date) datediff = (end_date - start_date).days / frequency.days + 1 dates = []