DATEDIFF() FUNCTION in MySQL

DATEDIFF() FUNCTION The MySQL DATEDIFF function is used to get the difference in days between two date values. The various versions of MySQL support the DATEDIFF function, namely, MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0 and MySQL 4.1.1. Syntax: DATEDIFF( date1, date2 ) Parameters: date1, date2: They are used to specify the … Read more