## 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[. SSSS]]]]]]+[/-ZZZZ].

**Signature:**

```typescript
export declare function parseHl7DateTime(hl7DateTime: string | undefined, options?: Hl7DateParseOptions): string | undefined;
```

## Parameters

| Parameter        | Type                         | Description                               |
|------------------|------------------------------|-------------------------------------------|
| hl7DateTime      | string \| undefined         | Date/time string.                        |
| options          | [Hl7DateParseOptions](/content/docs/sdk/core.hl7dateparseoptions) | _(Optional)_ Optional parsing options.    |

**Returns:**

string \| undefined

The date in ISO-8601 format.
