Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

convert date to string in python

# You can use Numpy's datetime_as_string function.
# The unit='D' argument specifies the precision, in this case days.

t = numpy.datetime64('2012-06-30T20:00:00.000000000-0400')
numpy.datetime_as_string(t, unit='D')

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #date #string #python
ADD COMMENT
Topic
Name
4+2 =