Thursday, August 1, 2013

how to get the no of days between two dates

to get the no of days between two dates,
use the following sql query

SELECT DATEDIFF(DAY,'2013-04-12',GETDATE())

return value : 265

No comments:

Post a Comment