Do you know September 1752 has only 19 days, 11 days were skipped.
Here goes the reason...This was the month during which England shifted from the Roman Julian Calender to Gregorian Calendar.A Julian year was 11 days longer than a Gregorian year.So, king of that country ordered ,11 days to be wiped off that particular month.
In the Julian calendar, April used to be the first month of the year, but the Gregorian calender observed January as the first month.Even after shifting to the Gregorian calendar, many people refused to give up old traditions and continued celebrating 1st April as New year's day.when king's order didn't work, the king finally issued a royal dictum, which stated that those who celebrated 1st April as the new year's day would be labeled as fools.From then on, 1st April become April fool's day .
Other reason which few believe is that, the six and half million Britons went to bed on September 2nd 1752 and woke up at September 14th 1752.
The rule for calculating leap years was changed to include that a year is a Leap year ifThe Leap year is divisible by 4.
If the year can be evenly divided by 100, it is not a leap year, unless
The year is also divisible by 400, Then it is a leap year.
programmable logic to check whether a given year is leap year or not.
if(n%400!=0 && n%100==0)
Try this out:-