Skip to main content

core.formathl7datetime

Home > @medplum/core > formatHl7DateTime

formatHl7DateTime() function

Formats an ISO date/time string into an HL7 date/time string.

Signature:

export declare function formatHl7DateTime(isoDate: Date | string): string;

Parameters

ParameterTypeDescription
isoDateDate | stringThe ISO date/time string.

Returns:

string

The HL7 date/time string.