Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Get Today’s Year, Month, and Date using today method

# import the date class
from datetime import date

# date object of today's date
today = date.today()

print("Current year:", today.year)
print("Current month:", today.month)
print("Current day:", today.day)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Get #Date #today #method
ADD COMMENT
Topic
Name
1+2 =