Hi,
I want to determine the difference in Days i.e. total days between two dates in SQL Server.
Please guide
You can use DATEDIFF function and pass parameter as DAY to it to get difference in Days.
SELECT DATEDIFF(DAY, '2025-02-07', '2025-02-10')
or
SELECT DATEDIFF(DAY, '2025-02-07', GETDATE())
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.