T-sql SmallDateTime add day when time passed 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
How about adding 30 minutes and converting to a date?