# 2. Determine the Gregorian start of the Shamsi year # The Shamsi year starts on March 21st (roughly). # A reliable mathematical shift: # Gregorian Year = Shamsi Year + 621 (for the first 9 months of Gregorian year) # or + 622 (for the last 3 months). # A simpler approach is to find the Gregorian date for 1 Farvardin of the current year.
On the other hand, the Miladi calendar, also known as the Gregorian calendar, is a widely used calendar that was introduced in 1582 by Pope Gregory XIII. One of the main advantages of the Miladi calendar is its global acceptance and widespread use. It is the de facto international calendar used in business, international relations, and science. This makes it easier for people from different countries and cultures to communicate and coordinate with each other, as everyone is using the same calendar. tarikh shamsi b miladi better
در ادامه نمونههای کوتاه برای تبدیل (در زبانهای رایج). این نمونهها از الگوریتمهای مرجع ساده استفاده میکنند؛ برای استفادهٔ تولیدی از کتابخانههای معتبر (مثل dateutil، moment-jalaali، persiantools و غیره) استفاده کنید. # A simpler approach is to find the