How to validate the DateTime of MM/dd/yyyy hh:mm format?

前端 未结 5 1751
无人及你
无人及你 2021-01-06 20:25

I am using MaskedEditExtender for entering a datetime. I am unable to figure out how to validate it.

Is there any Regular Expression for validating dates along with

5条回答
  •  伪装坚强ぢ
    2021-01-06 20:53

    And just in case you want the regular expression, this should work:

    ^(0[1-9]|1[012])/(0[1-9]|[12][0-9]|3[01])/(19|20)\d\d ([01]\d|2[0-3]):[0-5]\d$
    

提交回复
热议问题