Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Convert Date to String in python

# import the date class
from datetime import date

# function of date class
today = date.today()

# Converting the date to the string
Str = date.isoformat(today)
print("String Representation", Str)
print(type(Str))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Convert #Date #String #python
ADD COMMENT
Topic
Name
9+6 =