We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Date and Time
- Calendar Module
- Discussions
Calendar Module
Calendar Module
Sort by
recency
|
664 Discussions
|
Please Login in order to post a comment
import datetime import calendar
m, d, y = map(int, input().split()) input_date = datetime.date(y, m, d) print(calendar.day_name[input_date.weekday()].upper())
try this for python solution it is very easy
import datetime m,d,y=map(int,input().split()) x=datetime.datetime(y,m,d) y=x.strftime("%A") print(y.upper())