Answers for "python hwo to get the current day month year"

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
8

python get day month year

import datetime
now = datetime.datetime.now()
print(now.year, now.month, now.day, now.hour, now.minute, now.second)
Posted by: Guest on May-12-2020

Code answers related to "python hwo to get the current day month year"

Python Answers by Framework

Browse Popular Code Answers by Language