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
Paul is a passionate programmer who enjoys writing about all things technical. He likes getting into the nitty-gritty of technology and describing it in a way that anybody can understand.