Recognise an arbitrary date string

后端 未结 14 849
抹茶落季
抹茶落季 2020-12-01 16:18

I need to be able to recognise date strings. It doesn\'t matter if I can not distinguish between month and date (e.g. 12/12/10), I just need to classify the string as being

14条回答
  •  -上瘾入骨i
    2020-12-01 16:36

    Usually dates are characters separated by a back/forward slash or a dash. Did you consider a regular expression?

    I am assuming you are not looking to classify dates of the type Sunday, October 3rd 2010 and so on

提交回复
热议问题