MySQL Date/Time Subdate() Function
The subdate() is a MySQL date/time function. It is used to get the date which is subtracted by given intervals.
Date : date by which interval is to be subtracted.
Days : number of days in which interval is to be subtracted.
Value : time or date interval to be subtracted.
Unit : type of interval such as DAY, MONTH, MINUTE, HOUR and so on. Following can be one of them.
This unction returns the date which is subtracted by given intervals.