SyntaxFix
Write A Post
Hire A Developer
Questions
try this:
import datetime from datetime import datetime as dt today_date = datetime.date.today() date_time = dt.strptime(date_time_string, '%Y-%m-%d %H:%M')
strp() doesn't exist. I think you mean strptime.