摘要: 1、yyyy-MM-dd格式时间校验:(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11 阅读全文
posted @ 2019-03-13 16:09 派大星帅帅 阅读(1221) 评论(0) 推荐(0)
摘要: /// /// 是否为日期型字符串 /// /// 日期字符串(2008-05-08) /// public static bool IsDate(string StrSource) { return Regex.IsMatch(StrSource, @"^((((1[6-9]|[2-9]\d)\d{2})-(0?[13578]|... 阅读全文
posted @ 2019-03-13 13:47 派大星帅帅 阅读(2650) 评论(0) 推荐(0)