Is Date X + 365 days and Date X + 1 Year always will result in same date?

67 Views Asked by At

In particular,

  1. Date X + 12 Months
  2. Date X + 1 Year
  3. Date X + 365 days

Will these result in all same dates at any point of X?

1

There are 1 best solutions below

4
On

It will not, the third example might be different from the other two because of leap years. A leap year have 366 days, so if between date X and date X + 1year there is a leap day, date X + 365 will result in one day less than date X + 1year

Also, it's important to state that this question is not a really good one, as stated by José Carlos Santos in the comments of this answer, and you should improve it, as to make this comunity more organized, and a better place for people who enjoy math and want to learn more.