## formatTime() function

Formats a FHIR time string as a human readable string. Handles missing values and invalid dates.

**Signature:**

```typescript
export declare function formatTime(time: string | undefined, locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| time | string \| undefined | The date to format. |
| locales | Intl.LocalesArgument | _(Optional)_ Optional locales. |
| options | Intl.DateTimeFormatOptions | _(Optional)_ Optional time format options. |

**Returns:**

string

The formatted time string.

- [formatTime() function](/content/docs/sdk/core.formattime#formattime-function/index.html)
- [Parameters](/content/docs/sdk/core.formattime#parameters/index.html)
