Commit 1b6fb137 by Rajeev Uppala

datatype condition added

parent c0dfdbfb
Showing with 1 additions and 1 deletions
......@@ -34,7 +34,7 @@ def validate_available_date(date_text):
new_date_text = datetime.fromtimestamp(timestamp)
print("new_date_text",new_date_text)
HolidaysList = ["2021-01-01","2021-05-31","2021-07-05","2021-09-06","2021-11-25","2021-11-26","2021-12-24","2021-12-27"]
dayNumber = new_date_text.strftime('%w') #To check weekend or weekday
dayNumber = int(new_date_text.strftime('%w')) #To check weekend or weekday
print("daynumber",dayNumber)
dateCheck = new_date_text.strftime('%Y-%m-%d') #To check for public holidays
print("dateCheck",dateCheck)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment