The Romans had started dating things and using a calendar in 735 BC, when they set 304 days in the year, and started the year on March 1st. It didn’t take them long to figure out this was wrong and in about
700 BC they changed the year to have 355 days.
45 BC the beginning of the year was made January 1st, the length of the year was set at 365 days (366 for leap years) and the length of the months set to how we now know them. Leap years were still a little haphazard and scholars still disagree which years were considered leap years. However the rules were formalised and by 4 AD every fourth year was considered a leap year, making the year an average of 365.25 days.
"531 AD" by a monk, Dionysius Exiguus (Dennis the Small). He counted backward to where he supposed 1 AD should be. However he got it wrong. This means Herod died in 4 BC, and he was supposed to be alive when Jesus was born. So calendar remains at least 4 years out.
In 1582 the Gregorian Calendar (named after Pope Gregory XIII) was introduced to bring even more accuracy to the calendar. The actual year is about 11 minutes short of 365.25 days. In other words, it had been gaining 3 extra days every 400 years and so the calendar had slipped by about 10 days by this point. So in that year October 4th was followed by October 15th to allow for correction.
1752 when September 2nd was followed by September 14th.
1972 (up to 2009). Also the standard definition of a second, day and year have changed due to increases in accuracy and the variability of the earth’s rotation.

| Length of year in 2000 | days |
| Sideral year (time to orbit 360 degrees) | 365.2564 |
| Tropical year † (vernal equinox to same, absolute) | 365.24219 |
| Between two March (vernal) equinoxes (relative to sun in sky) | 365.24237 |
| Between two June solstices | 365.24162 |
| Between two September equinoxes | 365.24201 |
| Between two December solstices | 365.24274 |
† this is the one used |