Mysql Diff Date. In mysql you can use the datediff function to find the difference between two dates. Datediff expr1 expr2 where expr1 is the first date and expr2 is the second date.
Only the date parts of the values are used in the calculation. Mysql datediff function. In mysql you can use the datediff function to find the difference between two dates.
It is to be noted that two expressions must be the same type.
The datediff function returns the difference between two dates. Mysql select date 2003 12 31 01 02 03. Datediff 2008 05 17 11 31 31 2008 04 28 19 1 row. Return the number of days between two date values.
