For 100% accuracy (especially for leap years), use these reliable digital converters:
PHP (با IntlDateFormatter یا کتابخانهٔ Morilog\Jalali):
A dedicated tool for converting Shamsi dates and times. tarikh shamsi b miladi better
Booking flights, hotels, and international transportation requires using the Gregorian date. Knowing your travel date in Miladi is mandatory for international travel. How to Convert Tarikh Shamsi b Miladi Easily
: A handy browser plugin that automatically converts Miladi dates on websites into Shamsi as you browse. Why the Shamsi Calendar is Unique For 100% accuracy (especially for leap years), use
You can automate this by changing the Format Cells settings. Right-click a cell > Format Cells > Date , and then select "Persian" or "Gregorian" from the Locale or Calendar type dropdown.
Almost every foundational software, cloud service, and database architecture is built natively around the Miladi (Gregorian) calendar. Database Synchronization How to Convert Tarikh Shamsi b Miladi Easily
To find the Gregorian year from a Persian year, you generally add Spring/Summer/Fall: Add 621 (e.g., 1403 + 621 = 2024). Add 622 (e.g., the end of 1403 falls in early 2025). Step-by-Step Conversion Logic Identify the Day of the Year: Calculate how many days have passed since Nowruz. Account for Leap Years: Both calendars use leap years, but on different cycles. Adjust for the New Year:
If “better” means astronomically precise and naturally aligned , Tarikh Shamsi is superior . If “better” means practical for globalized life , Tarikh Miladi is necessary .
jdn = self._to_jdn() return self._jdn_to_gregorian(jdn)
const jalali = '1400-01-01'; const m = moment.from(jalali, 'fa', 'YYYY-MM-DD'); console.log(m.format('YYYY-MM-DD')); // 2021-03-21