How to check datetime format in IF statement python

后端 未结 0 1392
醉话见心
醉话见心 2021-01-05 10:04

Say I have two types of datetime format need to check which are the following:

  1. %Y-%m-%dT%H:%M:%S.%f%z
  2. %Y-%m-%d

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