得到当前日期前一天的零时零分零秒及当前日的零时零分零秒

select   dateadd(day,-1,CONVERT(varchar(10),getdate(),120))

原文地址:https://www.cnblogs.com/12go/p/2221483.html