mmm... messy :P
When you're comparing to see if the year is divisible by 400, you're using an else if, but it should be just an if.
Type: Posts; User: helloworld922
mmm... messy :P
When you're comparing to see if the year is divisible by 400, you're using an else if, but it should be just an if.
Remember, there could be a ton of leap years in between the reference date and the date you entered. For every year that is a leap year in between the two dates you will have to add an extra day. I...
You will need at least 1 date of reference and which day of the year it is. Then simply calculate how many days there are between that reference date and the date the user entered (you will have to...