Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
actually i was searching for a code or algorithm which i could convert the computer calender to Iranian calender but there are a few problems

for leap year how could I count them by division the number of right year to 4? 2-i can count the date the year but for month & days i can not ,actually I faced to some algorithm but when you try to test them they are not working for days

this is the formula which i already get for the algorithm but it doesn't work for days.

(total of days) -226899 +503/365=answer -1 ==year
(total of days) -226899 +503%365=answer-(the months of Christian calender)
till the answer will be less than 31
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900