MySQL DATEDIFF() FunctionThe datediff() is a MySQL date/time function. It is used to get the difference between two date values. SyntaxParameter:date1 & date2 : date's for calculating the difference. ReturnsThis function returns the difference in days between two date values. Example 1Output: ![]() Example 2Output: ![]()
Next TopicMySQL date/time
|