Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Convert Python Datetime to String

# Python program to demonstrate datetime object
# import datetime class
from datetime import datetime as date

# Getting current date and time
now = date.now()

string = date.isoformat(now)
print(string)
print(type(string))
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Convert #Python #Datetime #String
ADD COMMENT
Topic
Name
4+4 =