摘要:
方法一:使用DateTime.Compare 方法public static int Compare( DateTime t1, DateTime t2)t1早于t2:小于零t1与t2相同:零t1晚于t2:大于零示例:DateTime ctime = Convert.ToDateTime("2013-07-14 04:00:00.000");DateTime today = DateTime.Now;DateTime.Compare(today,ctime)>0DateTime now = DateTime.Now;var policypro = _db.Policy 阅读全文
posted @ 2013-07-14 07:32
James·wang
阅读(1614)
评论(0)
推荐(1)
浙公网安备 33010602011771号