format_hijri
Format any Gregorian date as a Hijri date with Arabic month names and era, supporting locale and numeral system customization.
Instructions
Format a Gregorian date as a Hijri (Islamic) date string with Arabic month names and era (e.g. 2025-09-23 -> "٢٣ رمضان ١٤٤٧ هـ").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | Gregorian date as ISO 8601 string, e.g. '2025-09-23' or '2025-09-23T00:00:00Z'. | |
| locale | No | BCP-47 locale, e.g. 'ar', 'ar-SA', 'en'. Defaults to 'ar'. | |
| numerals | No | Numeral system: 'latn' (1234), 'arab' (Eastern Arabic ١٢٣٤), or 'arabext' (Persian/Urdu ۱۲۳۴). |