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')
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #format #date #string #python
ADD COMMENT
Topic
Name
1+7 =