setYear
Set the year to the given date.
setYear(new DateTime(2004,2,29), 2003) will be date of 2003-2-28 because 2004 was a leap year.
the date to be changed
the year of the new date
the new date with the year set
Generated using TypeDoc
setYear
Set the year to the given date.
setYear(new DateTime(2004,2,29), 2003) will be date of 2003-2-28 because 2004 was a leap year.