As far as I can tell there is no way to distinguish the difference between these two date strings (\'2020-10-07\', \'2020-10-07T00:00:00\') once they are parsed by dateutil.