mazey
    Preparing search index...

    Function isThisMonth

    • Check whether a date is in the current local calendar month and year.

      Usage:

      import { isThisMonth } from "mazey";

      const ret = isThisMonth(new Date());
      console.log(ret);

      Output:

      true
      

      Parameters

      • date: MazeyDate

        A Date, millisecond timestamp, or string accepted by isValidDate.

      Returns boolean

      Whether the value has the current local year and month. Invalid input returns false.

      Results depend on the runtime's local timezone.