Answers for "how to get the day in pyhton"

3

python date get day

import datetime
dt = datetime.datetime.today()
year = dt.year
month = dt.month
day = dt.day
Posted by: Guest on December-18-2020

Code answers related to "how to get the day in pyhton"

Python Answers by Framework

Browse Popular Code Answers by Language