mazey
    Preparing search index...

    Function isToday

    • Check whether a date is today in the runtime's local timezone.

      Usage:

      import { isToday } from "mazey";

      const ret = isToday(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, month, and day. Invalid input returns false.

      Hours, minutes, seconds, and milliseconds are ignored. Results depend on the runtime's local timezone.