.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Post New Resource Bookmark and Share   

Get number of days between two dates in sql

Posted By:Hiren Soni       Posted Date: August 29, 2010    Points: 10    Category:    URL: http://www.dotnetspark.com  

Get number of days between two dates in sql
 

calculate number of days between two dates in sql




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

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend