DateTime dtTemp;
 string strTemp="2012-12-12";
 bool isDate= DateTime.TryParse("strTemp",out dtTemp);

相关文章: