mazey
    Preparing search index...

    Function isThisYear

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

      Usage:

      import { isThisYear } from "mazey";

      const ret = isThisYear(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. Invalid input returns false.

      Results depend on the runtime's local timezone.