Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions plugins

plugins Functions

  • name

    setYear

    summary

    Set the year to the given date.

    description
    example

    setYear(new DateTime(2004,2,29), 2003) will be date of 2003-2-28 because 2004 was a leap year.

    Parameters

    • date: DateTime

      the date to be changed

    • year: number

      the year of the new date

    Returns DateTime

    the new date with the year set

Generated using TypeDoc