special date and time code example
Example: special date and time
MySQL Date and Time Functions
DAYOFWEEK
DATE_SUB
WEEKDAY
ADDDATE
DAYOFMONTH
SUBDATE
DAYOFYEAR
EXTRACT
MONTH
TO_DAYS
DAYNAME
FROM_DAYS
MONTHNAME
DATE_FORMAT
QUARTER
TIME_FORMAT
WEEK
CURRENT_DATE
YEAR
CURRENT_TIME
YEARWEEK
NOW
HOUR
SYSDATE
MINUTE
UNIX_TIMESTAMP
SECOND
FROM_UNIXTIME
PERIOD_ADD
SEC_TO_TIME
PERIOD_DIFF
TIME_TO_SEC
DATE_ADD