Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Time
Date
Datetime
Summary
16. Question 2

Instruction

Perfect! One more question!

Exercise

Write a function named last_day_of_month(user_datetime). For any given user_datetime, the function should return a string with the last day of the month formatted as day.month.year (weekday). For instance, for an input of July 18th, 2018, the function should return 31.07.2018 (Tuesday).

Stuck? Here's a hint!

For the strftime() function, you'll need %d, %m, %Y, and %A.