C# 判断两个日期是否是同一天
System.Data.Entity.DbFunctions.DiffDays(cs.StartTime.Value,DateTime.Now) == 0//只获取当天
OR
XX.StartTime.Value.Date.Equals(DateTime.Now.Date)//只获取当天
文章来自:http://www.cnblogs.com/niaowo/p/3732719.html
System.Data.Entity.DbFunctions.DiffDays(cs.StartTime.Value,DateTime.Now) == 0//只获取当天
OR
XX.StartTime.Value.Date.Equals(DateTime.Now.Date)//只获取当天