public static bool IsDate( string strDate) { DateTime dtDate; bool bValid = true; try { dtDate = DateTime.Parse(strDate); } catch (FormatException) { // 如果解析方法失败则表示不是日期性数据 bValid = false; } return bValid; }