This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| from datetime import datetime | |
| def UserDateInput(): #Define function named UserDateInput reuqesting the user to input two dates. Checks to see if inputs are in correct format of yyyy-mm-dd. Also checks to make sure the starting date is before the ending date. | |
| CorrectStartEnd = False #Defines variable to reference in following loop | |
| while CorrectStartEnd == False: #Loop until End date is after Start date | |
| Correct_Dformat1 = False #Defines variable for first date following loop | |
| while Correct_Dformat1 == False: #Loop until formatting of StartDate_Request is correct |