Validation
Returns a boolean indicating whether the Dayjs's date is valid.
Non-strict check.
Only checks if the value could be parsed to a Date time.
dayjs('2022-01-33').isValid(); // true, parsed to 2022-02-02 dayjs('some invalid string').isValid(); // falseStrict check.
Checks if the value could be parsed to a Date time and it is a valid date. The last two arguments
formatandstrictmust be provided.This requires the
CustomParseFormatplugin to workdayjs('2022-02-31', 'YYYY-MM-DD', true).isValid(); // false
