Complicated answer. It was proclaimed by Pope Gregory in 1582 but did not take effect in all countries at once. In the British Empire (including the American colonies) it was changed in 1752. In Alaska it changed in 1867 when it became part of the United States.
Other people asked questions on similar topics, check out the answers they received:
Other people asked questions on various topics, and are still waiting for answer. Would be great if you can take a sec and answer them