I'm looking for a way to Subtract 24hrs in T-SQL from Today's Date
Thanks!
SELECT GETDATE() - 1
The -1
substracts one day from current date (GETDATE()
)
DECLARE @Now datetime, @Calc datetime
SET @Now = GetDate()
SET @Calc = DateAdd(hh, -24, @Now)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With