Datetime

from datetime import datetime, timedelta

datetime.now()

# string to date
data_dt= datetime.strptime(data_str, '%Y-%m-%d %H:%M:%S')

Last updated