dayjs invalid date

JavaScript
dayjs('SomeDate').isValid()
Source

Also in JavaScript: