C# Regular Expression to validate a date?

后端 未结 10 1799
后悔当初
后悔当初 2020-12-30 04:45

I am trying to validate a date entered into a text box. There is an input mask on the textbox which forces input of xx/xx/xxxx. I am trying to use a regular expression valid

10条回答
  •  Happy的楠姐
    2020-12-30 05:23

    As an alternative, you can use CompareValidator instead of RegularExpressionValidator. It goes like this:

提交回复
热议问题