Get number of days between two dates in sql
You get number of days between two date using datediff function
Select datediff(Day, date_1,date_2) as NoOfDays
From table
Get number of days between two dates in sql
You get number of days between two date using datediff function
Select datediff(Day, date_1,date_2) as NoOfDays
From table
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.
Prashanth Kumar ThadakaPosted Jun 20, 2021, 8:12 AM
DATEDIFF(Interval, StartDate, EndDate) it returns int.