Mysql Diff Date. First here s the syntax. It is to be noted that two expressions must be the same type.
When working with mysql database and trying to figure out how to find datediff in mysql all you have to do is use the mysql datediff function. The datediff function accepts two arguments that can be any valid date or date time values. Date2 a date datetime value.
Mysql datediff function.
When working with mysql database and trying to figure out how to find datediff in mysql all you have to do is use the mysql datediff function. The following statement will return the days between two datetime expressions 2008 05 17 11 31 31 and 2008 04 28. Select datediff 2008 05 17 11 31 31 2008 04 28. Date1 date2 technical details.