# fromHijri

Source: https://pakdatakit.dev/api/typescript/hijri/functions/fromhijri/

```ts
function fromHijri(hijri, options?): Date;
```

Defined in: [hijri.ts:63](https://github.com/chmuzamil/pakdatakit/blob/a6eeaa47381308c4e4fcda45b29642fe4fbfb1fc/src/hijri.ts#L63)

Converts a Hijri date to a Gregorian `Date` (local midnight).

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `hijri` | [`HijriDate`](https://pakdatakit.dev/api/typescript/hijri/interfaces/hijridate/) | Hijri date components |
| `options?` | [`HijriOptions`](https://pakdatakit.dev/api/typescript/hijri/interfaces/hijrioptions/) | Optional day offset, matching the one used with [toHijri](https://pakdatakit.dev/api/typescript/hijri/functions/tohijri/) |

## Returns

`Date`

Gregorian date

## Throws

If the Hijri components are out of range
