1.获取当前时间: var now=new Date(); //Tue Oct 17 2017 18:08:40 GMT+0800 (中国标准时间) 获取当前时间的日期 new Date().getDate() //17 new Date().toLocaleString() //2017/10/17 下午6:08:40 2.引用moment.js将标准时间转化成YYYY-MM-DD hh:mm:ss var time=moment(new Date()).format("YYYY-MM
G Era 标志符 Text AD y 年 Year 1996; 96 M 年中的月份 Month July; Jul; 07 w 年中的周数 Number 27 W 月份中的周数 Number 2 D 年中的天数 Number 189 d 月份中的天数 Number 10 F 月份中的星期 Number 2 E 星期中的天数 Text Tuesday; Tue a Am/pm 标记 Text PM H 一天中的小
public void TestMethod1(){using (var _context = new hotelEntities()){var rq = DateTime.Now.Date;var query = from q in _context.UV_RZJL_RZRY_Singlewhere SqlFunctions.DateDiff("day",rq,q.LDRQ)>0select q;Assert.Inconclusive(query.Count().ToStrin