TO_DAYS « Date Time Functions « MySQL Tutorial






14.50.TO_DAYS
14.50.1.TO_DAYS(date) returns a day number (the number of days since year 0).
14.50.2.SELECT TO_DAYS('1997-10-07');
14.50.3.Deal with two-digit-year value