Which of the following code samples will determine the last day of a given month?
Answer
Correct Answer: import datetime dt = datetime.date(year, month, day) next_month = (dt.month % 12) + 1 end_date = datetime.date(dt.year, next_month, 1) - datetime.timedelta(days=1) return end_date
Explanation:
Note: This Question is unanswered, help us to find answer for this one