Skip to main content

core.isdatetimestring

Home > @medplum/core > isDateTimeString

isDateTimeString() function

Returns true if the input value is a YYYY-MM-DDThh:mm:ss.sssZ date/time string.

Signature:

export declare function isDateTimeString(input: unknown): input is string;

Parameters

Parameter

Type

Description

input

unknown

Unknown input value.

Returns:

input is string

True if the input is a date/time string.