Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert string time to date time object

cr_date = '2013-10-31 18:23:29.000227'
cr_date = datetime.datetime.strptime(cr_date, '%Y-%m-%d %H:%M:%S.%f')
cr_date = cr_date.strftime("%m/%d/%Y")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #string #time #date #time #object
ADD COMMENT
Topic
Name
6+6 =