Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

string to date python

# app.py

from datetime import datetime

date_str = '10-27-2020'

dto = datetime.strptime(date_str, '%m-%d-%Y').date()
print(type(dto))
print(dto)
Source by appdividend.com #
 
PREVIOUS NEXT
Tagged: #string #date #python
ADD COMMENT
Topic
Name
6+6 =