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); Copy
import { isToday } from "mazey";const ret = isToday(new Date());console.log(ret);
Output:
true Copy
true
A Date, millisecond timestamp, or string accepted by isValidDate.
Date
isValidDate
Whether the value has the current local year, month, and day. Invalid input returns false.
false
Hours, minutes, seconds, and milliseconds are ignored. Results depend on the runtime's local timezone.
Check whether a date is today in the runtime's local timezone.
Usage:
Output: