T-sql SmallDateTime 添加时间过去的日期 23:30
declare @sampledate DateTime
set @sampledate='2020-09-18 23:59:53'
select @sampledate AS Date,
CAST(@sampledate as DATE) AS CAST_Date,
CAST(@sampledate as SmallDateTime) CAST_smalldatetime,
CONVERT(SmallDateTime,@sampledate) Convert_smalldatetime