select convert(datetime,convert(char(20),dateadd(day,-1,getdate()),102))
-1 minus the number of days
getdate to get the current time
select convert(datetime,convert(char(20),dateadd(day,-1,getdate()),102))
-1 minus the number of days
getdate to get the current time