make a program to calculate the difference between two datetime Ask…

Question Answered step-by-step make a program to calculate the difference between two datetime Ask… make a program to calculate the difference between two datetimeAsk the user to enter the first date in the format ( YYY/MM/DD HH:MM) or any format you wantAsk the user to enter the second date in the format ( YYY/MM/DD HH:MM) or any format you wantIf the second date is before the first dayjust print an error message and quit the programCalculate the difference between the two datesPrint the difference in terms of days and hoursex: the difference is 3 days and 2 hoursAssume the user will enter bad datesif the user enters bad data, you should print an elegant message and exit the programthe bad data can be2020/04/31 # April 31st does not existSeattle # you asked for a date, they entered a stringYou can use try-except that you learned on Chapter 8   Computer Science Engineering & Technology Python Programming PROG 108 Share QuestionEmailCopy link Comments (0)