Check whether a date is in the current local calendar year.
Usage:
import { isThisYear } from "mazey";const ret = isThisYear(new Date());console.log(ret); Copy
import { isThisYear } from "mazey";const ret = isThisYear(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. Invalid input returns false.
false
Results depend on the runtime's local timezone.
Check whether a date is in the current local calendar year.
Usage:
Output: