MYSQL date function: TO_DAYS() and FROM_DAYS() 1、to_days(date), change the date to a integer number days. mysql> SELECT TO_DAYS(950501); -> 728779 ... 2019-09-11 Mysql Comment Read More