Closed Cerceis closed 3 years ago
isValid only checks if it's a valid date to Date object.
You may specify a boolean for the last argument to use strict parsing. Strict parsing requires that the format and input match exactly, including delimiters. https://day.js.org/docs/en/parse/string-format
Or does it intended to only check for the date format ?