The MySQL DATEDIFF
function returns the difference in time between two dates.
Syntax
DATEDIFF(dateA, dateB)
Example
SELECT DATEDIFF('2011-12-31','2011-12-30') AS [Date Difference]
Results
1
The MySQL DATEDIFF
function returns the difference in time between two dates.
DATEDIFF(dateA, dateB)
SELECT DATEDIFF('2011-12-31','2011-12-30') AS [Date Difference]
1