SyntaxFix
Write A Post
Hire A Developer
Questions
As of version 17.0, you can format with the dt accessor:
dt
dates.dt.strftime('%Y-%m-%d')
Reference