python datetime format mismatch error is caused by %d

后端 未结 0 1635
自闭症患者
自闭症患者 2020-12-17 02:31

here is my code:

from datetime import datetime

when = 01/01/2020
chosenDate = datetime.strptime(\'when\', \'%m/%d/%Y\')

here is the error

相关标签:
回答
  • 消灭零回复
提交回复
热议问题