Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
167 B
2
Indexable
Never
from datetime import datetime

input_datetime = '25/11/2021 18:22:14'

python_datetime = datetime.strptime(input_datetime, '%d/%m/%Y %H:%M:%S')

print(python_datetime)