---
title: "Hijri Date Converter"
method: GET
path: "/api/calc/hijri-date-converter"
tags: ["DateTime"]
---

# Hijri Date Converter

`GET /api/calc/hijri-date-converter`

## Request

- Base URL: `https://calcbright.com`
- URL: `https://calcbright.com/api/calc/hijri-date-converter`
- Auth: none declared

Gregorian to Hijri and back on Saudi Arabia’s official Umm al-Qura calendar – for Iqama, contract and payroll dates – with the next Ramadan and Eid dates.

## Query parameters

- `mode` 'g2h' | 'h2g': Convert
- `gdate` string, date: Gregorian date Years 1902–2076 (Umm al-Qura calendar). (YYYY-MM-DD)
- `hd` number: Hijri day
- `hm` '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12': Hijri month
- `hy` number: Hijri year (AH)

## Response `200`

Calculation result

- CalcOutput
  - `ok` boolean
  - `tool` string
  - `name` string
  - `url` string: Open this link to see the full calculation
  - `inputs` object
  - `summary` string: Plain-text answer
  - `details` string
  - `result` object
  - `errors` object

## Other responses

- `400`: Invalid input (see errors)

---

[API](https://skmtc.dev/calcbright/apis/calcbright-calculator-api.md) · [All operations](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/llms.txt) · [OpenAPI document](https://skmtc.dev/calcbright/apis/calcbright-calculator-api/revisions/f58229e56e58?raw)
