摘要:
开发的过程中经常会碰到时间格式化的事,针对那些时间戳,2015-05-05,2015/05/05等都能很好的转换成你想要的格式function FormatDate(strDate, strFormat){ if (!strDate) return; if (!strFormat... 阅读全文
摘要:
业务需用为数据按倒序排序,当天数据排在以往日期前面,但当天数据需按小时进行升序排列select *from( select vcTitle,dtBeginDate,case when dtBeginDate<=getdate() then 1 else 2 end tt from TableA )... 阅读全文