几年前,有写过一个angularjs验证日期的后端和js。

 

正则:

 Regex regex = new Regex(@"(((19|20)\d\d)\-(0[1-9]|1[0-2])\-((0|1)[0-9]|2[0-9]|3[0-1]))$");
Source Code

相关文章: