Answers for "how to get year month and day from date in python"

6

how to get the calendar of current month in python

import calendar
import datetime
month = datetime.date.today().month
year = datetime.date.today().year
print (calendar.month(year,month))
Posted by: Guest on July-09-2021
1

how to get the year and month in python

import calander
ear = int(input("Input the year:- "))
Month = int(input("Input the month:- "))
print(calendar.month(y, m))
Posted by: Guest on July-27-2021

Code answers related to "how to get year month and day from date in python"

Python Answers by Framework

Browse Popular Code Answers by Language