2011年7月10日

摘要: public bool IsValidDate(string strDate) { if(strDate.Length==0) return true; Regex r = new Regex("^([0-9]+)-([0-9]{1,2})-([0-9]{1,2})$"); Match m=r.Match(strDate); if(m.Success) { Group g=m.Groups[1]; int year=int.Parse(g.ToString()); //获得年 if(year< 1 || year>9999) return false; g=m. 阅读全文
posted @ 2011-07-10 12:46 等待轮回 阅读(4206) 评论(3) 推荐(1)
 
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2011-07-10 12:15 等待轮回 阅读(9) 评论(0) 推荐(0)
 
只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2011-07-10 12:08 等待轮回 阅读(8) 评论(0) 推荐(0)