How do I check whether a date input includes days in Python