Mysql Date Add Year
Mysql Date Add Year explains to add the year to the particular date.
Understand with Example
The Tutorial illustrate an example from 'Mysql Date Add Year'. To graspe this example, we use Add('2008-12-15',INTERVAL 1 YEAR) query that add a 1 Year to the particular date.
SYNTAX:-ADDDATE(date,INTERVAL expr unit)
date:-Date from which the year is to be added.
INTERVAL expr unit :-No of the years to be added.
Query:-
The Query Date_Add('2008-12-15',INTERVAL 1YEAR) add a 1 year interval to the particular date.
SELECT DATE_ADD('2008-12-15', INTERVAL 1 YEAR); |
Output:-