public void CompanyDate(string dateStr1, string dateStr2,ref string msg) { //将日期字符串转换为日期对象 DateTime t1 = Convert.ToDateTime(dateStr1); DateTime t2 = Convert.ToDateTime(dateStr2); //通过DateTIme.Compare()进行比较() int compNum = DateTime.Compare(t1, t2); //t1> t2 if (...
public void CompanyDate(string dateStr1, string dateStr2,ref string msg) { //将日期字符串转换为日期对象 DateTime t1 = Convert.ToDateTime(dateStr1); DateTime t2 = Convert.ToDateTime(dateStr2); //通过DateTIme.Compare()进行比较() int compNum = DateTime.Compare(t1, t2); //t1> t2 if (...