Mysql Diff Date Year. Return the number of days between two date values. Datediff date1 date2 params.
Two dates to calculate the number of days between. Let s take some mysql datediff examples. Select datediff 2008 05 17 11 31 31 2008 04 28.
Datediff date1 date2 params.
The mysql datediff syntax is. Select datediff 2008 05 17 11 31 31 2008 04 28. The following statement will return the days between two datetime expressions 2008 05 17 11 31 31 and 2008 04 28. Date2 a date datetime value.