Skip to main content

core.isvaliddate

Home > @medplum/core > isValidDate

isValidDate() function

Returns true if the given date object is a valid date. Dates can be invalid if created by parsing an invalid string.

Signature:

export declare function isValidDate(date: Date): boolean;

Parameters

ParameterTypeDescription
dateDateA date object.

Returns:

boolean

Returns true if the date is a valid date.