یکی از باگهای موجود :
https://connect.microsoft.com/Visual...&wa=wsignin1.0
و
Hamed,
In fact people here are very correct. The method you've used for date conversion is incorrect. There is a book named "Taghvim Jalali" (I have it at home) which gives the correct information on how to convert Solar (Shamsi) and Gregorian (Miladi) dates to each other. I don't have time to look at it at the moment, but I may do it later, and paste it here for you as well. Anyways, it is a multi-step process. Many facts affect the date conversion, including but not limitted to:
1) Gregorian years which can be devided to 4 with no residual (like 2004) are leap years, but those ending in 00 are not (for example year 1900 was not a leap year.)
2) There are 10 years missing in the Gregorian calender! Believe or not, but some year in 14th century (if I can recall it correctly) the Gregorian scientists found out the Gregorian calender to be 10 days behind, so they omitted 10 days from that year (I'm not sure but based on the dark picture I can see in my mind, it was 2-11 February of that year) so no valid Gregorian calendar has those days in it! This means, if one uses your method to convert a Solar date to those years or before, you have to adjust the results for this missing period of time as well.
3) Solar leap years are not that easy of "every four years" again! I guess you live in Iran, which means, you might have noticed 1362, 1366 and 1370 to be leap years, but the next leap year was NOT 1374; it was 1375! And from that year on, our leap years will be four years apart (so they will remain odd numbers) for approximately 130 years. After this period, we have a FIVE years difference again for once.
I highly recommend you to by and read the book I referenced above. I'm not sure about the author name, and if you remind me, I can provide you with it in near future.
Finally, as others have told you here and elsewhere, you have to improve your English writing skills or you are behind.
Hope it helps you
Hojjat
http://69.10.233.10/KB/vb/Hijri_Shamsi_Date.aspx
و
.....