Meta Description: Struggling to choose between the Solar Hijri (Tarikh Shamsi) and the Gregorian (Miladi) calendar? This article breaks down the precision, seasonal alignment, religious significance, and global usability to determine which calendar system is objectively "better."
در ادامه نمونههای کوتاه برای تبدیل (در زبانهای رایج). این نمونهها از الگوریتمهای مرجع ساده استفاده میکنند؛ برای استفادهٔ تولیدی از کتابخانههای معتبر (مثل dateutil، moment-jalaali، persiantools و غیره) استفاده کنید.
Python (استفاده از کتابخانه persiantools):
from persiantools.jdatetime import JalaliDate
# مثال: تبدیل 1 فروردین 1400 به میلادی
j = JalaliDate(1400, 1, 1)
gregorian = j.to_gregorian()
print(gregorian) # خروجی: 2021-03-21
JavaScript (با moment-jalaali):
// نصب: npm install moment moment-jalaali
const moment = require('moment-jalaali');
moment.loadPersian(usePersianDigits: false);
const jalali = '1400-01-01';
const m = moment.from(jalali, 'fa', 'YYYY-MM-DD');
console.log(m.format('YYYY-MM-DD')); // 2021-03-21
PHP (با IntlDateFormatter یا کتابخانهٔ Morilog\Jalali):
use Morilog\Jalali\Jalalian;
echo Jalalian::fromFormat('1400-01-01','Y-m-d')->toCarbon()->toDateString();
// خروجی: 2021-03-21
اگر نمیخواهید کتابخانه نصب کنید، میتوان از الگوریتمهای تبدیل مبتنی بر JDN استفاده کرد، اما پیادهسازیِ صحیح کبیسهها نیازمند دقت است.
Q: Is Tarikh Shamsi more accurate than Miladi?
A: Yes, significantly. Shamsi’s drift is near zero; Miladi drifts 1 day per ~3,300 years. tarikh shamsi b miladi better
Q: Why is Miladi used everywhere?
A: Colonial history, industrial standardization, and digital compatibility—not because it’s astronomically better.
Q: Can I convert Shamsi to Miladi easily?
A: For rough conversion: add 621 or 622 (e.g., Shamsi year 1403 ≈ Miladi 2024–2025). For exact dates, use online converters or Python’s jdatetime library.
Q: Which is better for programming?
A: Absolutely Miladi. Store dates as UTC Gregorian; convert to Shamsi only for front-end display.
This article was last updated in 2026 — Miladi year 2026 currently corresponds to Shamsi years 1404 (until March 20) and 1405 (starting March 21).
Share this article with anyone debating between Tarikh Shamsi and Tarikh Miladi. Both calendars deserve respect—but now you know which one is “better” for your specific need.
The Persian (Shamsi) calendar, developed in the 11th century by astronomers including Omar Khayyam, is widely considered one of the world's most accurate calendar systems. It is a solar calendar that begins each year on the vernal equinox (Nowruz), typically falling around March 21st. Meta Description: Struggling to choose between the Solar
In modern times, converting between the Shamsi (Solar Hijri) and Miladi (Gregorian) calendars is a common necessity for international business and personal records. Popular Conversion Tools
Kodoom: A straightforward web-based converter for switching between Miladi and Shamsi dates.
Afghan Date Converter: A specialized tool trusted by users in Afghanistan and Pakistan for official documents and business transactions.
Taghvim: An online platform that provides conversion services specifically for the years 1404 and 1405 (2025-2026).
Iran Chamber Society: Provides a comprehensive tool for converting the Jalali (Shamsi) calendar to Gregorian and other formats. Calendar Structure Comparison
Unlike the Gregorian calendar, which has varying month lengths throughout the year, the Shamsi calendar follows a more consistent pattern: First six months: Each has exactly 31 days. Next five months: Each has 30 days. Final month: Typically has 29 days, or 30 in a leap year. Miladi to Shamsi Convertor - Kodoom.com Miladi to Shamsi Convertor - Kodoom.com. Kodoom.com significantly. Shamsi’s drift is near zero
تبدیل تاریخ Iranian Date Converter 2026 - Taghvim.com
مثال: تبدیل 1 فروردین 1400 شمسی
مثال دیگر: 10 اردیبهشت 1399 ≈ 29 آوریل 2020.
(برای تاریخهای مشخصتر، از قطعهکد زیر استفاده کنید.)
If you are a developer, trying to build a Shamsi-native app without falling back to Miladi timestamps is a nightmare.
Winner: Tarikh Miladi — hands down. Compatibility is king.
| Use Case | Recommended Calendar | |----------|----------------------| | International business, travel, science | Miladi (essential) | | Iranian/Afghan civil, cultural, or agricultural planning | Shamsi | | Historical research (Middle East, Central Asia) | Shamsi (but cross-reference with Miladi) | | Programming / global software | Miladi (primary), support Shamsi as locale | | Astronomy / equinox-based events | Shamsi (more natural) | | Legal documents outside Iran/Afghanistan | Miladi |