Documentation You can see below the API reference of this module. dateIsInvalid(d) Check if a date is invalid or not. Params Date d: The input date. Return Boolean true if the date is invalid, false otherwise.