//判断日期是否合法
public bool IsDate(string strDate)
{
try
{
System.DateTime.Parse(strDate);
}
catch
{
return false;
}
return true;
}
public bool IsDate(string strDate)
{
try
{
System.DateTime.Parse(strDate);
}
catch
{
return false;
}
return true;
}