Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

format date string python

import datetime
datetime.datetime.strptime("2022-1-25", '%Y-%m-%d').strftime('%m/%d/%y')
 
PREVIOUS NEXT
Tagged: #format #date #string #python
ADD COMMENT
Topic
Name
5+4 =