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.
jsdayjs('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.TIP
This requires the CustomParseFormat plugin to work
jsdayjs('2022-02-31', 'YYYY-MM-DD', true).isValid(); // false
