Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions plugins

plugins Functions

  • name

    setMonth

    summary

    Set the month to the given date.

    description
    example

    setMonth(new DateTime(2018,7,31), 2) will be date of 2018-2-28

    Parameters

    • date: DateTime

      the date to be changed

    • month: number

      the month of the new date [1 to 12]

    Returns DateTime

    the new date with the month set

Generated using TypeDoc