Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python DateTime Date Class Example

# Python program to demonstrate date class
# import the date class
from datetime import date

# initializing constructor and passing arguments in the format year, month, date
my_date1 = date(1999, 3, 5)
print("Date passed as argument is", my_date1)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #DateTime #Date #Class #Example
ADD COMMENT
Topic
Name
4+2 =