core.parsehl7datetime
Home > @medplum/core > parseHl7DateTime
parseHl7DateTime() function
Returns a formatted string representing the date in ISO-8601 format.
HL7-Definition V2 Specifies a point in time using a 24-hour clock notation.
Format: YYYY[MM[DD[HH[MM[SS[. S[S[S[S]]]]]]]]][+/-ZZZZ].
Signature:
export declare function parseHl7DateTime(hl7DateTime: string | undefined, options?: Hl7DateParseOptions): string | undefined;
Parameters
Parameter  | Type  | Description  | 
|---|---|---|
hl7DateTime  | string | undefined  | Date/time string.  | 
options  | (Optional) Optional parsing options.  | 
Returns:
string | undefined
The date in ISO-8601 format.