Update clean_mshr19_NV.py
This commit is contained in:
parent
3424decf2e
commit
3f1eafe8d0
@ -5,13 +5,13 @@ from datetime import datetime
|
||||
|
||||
# Prompt the user for a valid date in DD/MM/YYYY format
|
||||
while True:
|
||||
date_str = input("Please input the date in DD/MM/YYYY format: ")
|
||||
date_str = input("Please input the date in YYYY/MM/DD format: ")
|
||||
try:
|
||||
# Validate format
|
||||
date_obj = datetime.strptime(date_str, "%d/%m/%Y")
|
||||
date_obj = datetime.strptime(date_str, "%Y-%m-%d")
|
||||
break
|
||||
except ValueError:
|
||||
print("Invalid date format. Please try again (DD/MM/YYYY).")
|
||||
print("Invalid date format. Please try again (YYYY/MM/DD).")
|
||||
|
||||
# Collect all .xls and .xlsx files in the current directory
|
||||
excel_files = glob.glob("*.xls") + glob.glob("*.xlsx")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user