Mysql Diff Days. Date1 date2 technical details. Note that i use boolean expressions in many cases.
Datediff date1 date2 params. These results return integer number of years months and days. Basically the mysql datediff function gives the difference between days between two date values.
Date1 a date datetime value.
The datediff function accepts two arguments that can be any valid date or date time values. Let s take some mysql datediff examples. The mysql datediff function s default return value is the number of days between two date or datetime expressions. Select datediff 2008 05 17 11 31 31 2008 04 28.