Gregorian to Hijri Shamsi Date Converter: What It Changes and When to Trust the Result
A practical review of converting Gregorian dates to the Solar Hijri (Shamsi) calendar: how conversion works, where leap-year rules differ, and how digits and text direction affect copying and sharing.
A Gregorian to Hijri Shamsi converter takes a date on the international civil calendar and expresses it in the Solar Hijri calendar, the official calendar of Iran, also called the Persian or Shamsi calendar. This review looks at what the conversion changes, where results can differ between tools, and what happens to the converted date when you paste it into a document, form, spreadsheet or message. No specific converter was tested for this article, so the points below rest on how the calendar works, not on measurements of any product.
Is a Solar Hijri conversion suitable for your use?
Converting is the right choice when the reader thinks in Solar Hijri dates. Examples include correspondence with people or institutions in Iran, localized user interfaces, and forms that expect a Shamsi date. The main benefit is that the date becomes immediately meaningful to that audience, with no mental arithmetic.
The decisive tradeoff is reliability outside that audience. A Shamsi date written with Persian digits and Persian month names is hard for most software and most non-Persian readers to interpret. Converters can also disagree on a small number of dates near the new year in certain years. That happens when a tool uses an arithmetic leap-year rule instead of the astronomical rule Iran applies.
Keep the Gregorian date, ideally in the ISO 8601 form YYYY-MM-DD, as the stored value in three cases: when the date feeds a database, spreadsheet, calendar invite, legal record or any automated process, or when a mixed audience will read it. Show the Solar Hijri date as a display layer, or give both.
What the conversion actually changes
This is not a reversal, mirror effect or font style. A converter does not reorder characters, flip glyphs or swap letters for look-alike Unicode symbols. It calculates a different calendar date and writes new characters that represent it. The output is a new stored value: new year, month and day numbers, often a different month name, and sometimes a different digit set. It is not the same text shown in a different way.
The Solar Hijri calendar counts years from the Hijra, the same starting point as the lunar Islamic calendar. However, its months follow the solar year, and the year begins at Nowruz, which falls on or near the March equinox. As a result, the Shamsi year number is 621 or 622 less than the Gregorian year, depending on whether the date falls before or after Nowruz.
Watch for a naming ambiguity. "Hijri" on its own often means the lunar Islamic calendar (Hijri Qamari), which is a different system. Its months drift through the seasons, and its year numbers are noticeably higher. If a tool's labels do not say "Shamsi", "Solar Hijri" or "Persian", check which calendar it outputs before relying on it.
Month structure
| Months | Names | Length |
| 1–6 | Farvardin, Ordibehesht, Khordad, Tir, Mordad, Shahrivar | 31 days each |
| 7–11 | Mehr, Aban, Azar, Dey, Bahman | 30 days each |
| 12 | Esfand | 29 days, or 30 in a leap year |
Because the month lengths follow a fixed pattern, most dates convert the same way in every competent tool. The exception is leap years. Iran's calendar places Nowruz using the actual time of the March equinox, so leap years follow the astronomy. Many software libraries approximate this with an arithmetic cycle. These rules agree for most years but can differ for some, which moves dates near the year boundary by one day. If exact dates around Esfand and Farvardin matter, check the converter against an official Iranian calendar for that year.
Dates long before the modern calendar's legal adoption in the twentieth century are proleptic: they are calculated backward rather than recorded at the time. They are fine for computation but may not match dates in historical documents.
Will the result stay readable after copying or sharing?
Digits are separate characters
A converter may output Western digits, Persian digits (Extended Arabic-Indic, U+06F0 to U+06F9), or occasionally Arabic-Indic digits (U+0660 to U+0669). The two Eastern sets look similar, but some digits differ in shape. All three are distinct code points. The same Solar Hijri date can therefore exist as different strings:
1403/01/01
۱۴۰۳/۰۱/۰۱
These strings will not match each other in a plain text search. Spreadsheets and form validators may not recognize Eastern digits as numbers. Mixing the Persian and Arabic-Indic sets in one dataset causes silent mismatches. If the output will be searched, sorted or parsed, pick one digit set and normalize to it. Western digits are the safer choice for machine processing.
Text direction
Persian is written right to left, while digits are laid out left to right inside it. A date with slashes or hyphens placed in Persian text, or a Persian date dropped into an English sentence, is handled by the Unicode bidirectional algorithm. The visible order can then depend on the surrounding characters and on the app. A date that looks correct in one editor may appear with its parts or neighboring punctuation shifted in another.
Copying keeps the underlying character order, so the stored value stays correct even when the display does not. Check the result in the actual destination before publishing. Where you control the markup, wrap the date in a direction-isolated element or use Unicode isolate characters so it does not interact with nearby text.
Accessibility
How a screen reader announces Persian digits and month names depends on the reader, its voice and the language the content declares. No assistive technology was tested for this article. General accessibility guidance applies: mark passages in another language with the correct language attribute, such as lang="fa" for Persian, so assistive technology can choose a suitable voice. For mixed audiences, a written-out Gregorian equivalent nearby gives every reader an unambiguous fallback.
When a plain equivalent is needed
- Storing dates in databases, spreadsheets or file names: keep ISO 8601 Gregorian dates.
- Calendar invites, deadlines and contracts read by people on different calendars: give both dates.
- Searchable archives: normalize digits to one set, or index both forms.
- Localized display for Persian-speaking readers: Shamsi with Persian digits is appropriate, and should be generated from a stored Gregorian value.
{
"date": "YYYY-MM-DD",
"display_fa": "<Solar Hijri date in Persian digits>"
}
What this review could not confirm
No specific converter, library or website was examined. This article therefore makes no claims about any tool's accuracy, leap-year method, digit options, offline behavior, or how it handles the dates you enter. A clean interface is not evidence of careful data handling. Check a tool's stated privacy terms directly if you plan to enter sensitive dates such as birth dates or document numbers.
Before relying on any converter, test it with a few dates from your intended range, including some near Nowruz, against an authoritative Iranian calendar.