Getting date error while creating task event

external_call_at: new Date(createTaskPayload.externalStateCreationDate || new Date()), in marketplace-utilities/lib/recource/task-event

This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason: ValidationError: task_events validation failed: external_call_at: Cast to date failed for value “Invalid Date” (type Date) at path “external_call_at”

Getting this error on x5 .

task_events schema creation failed due to Invalid date format validated from marketplace utilities library side. After changing the date foramat task_events schema creation successfully. It is resolved.