Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Convert datetime object to a String of date only in Python

import datetime
t = datetime.datetime(2012, 2, 23, 0, 0)
t.strftime('%m/%d/%Y')
#Output
'02/23/2012'
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Convert #datetime #object #String #date #Python
ADD COMMENT
Topic
Name
7+2 =