When was the United Nations Established?

The United Nations was established during the Second World War around 1942, but the official charter was signed in 1945. The purpose of this organisation was to promote peace, security and economic development.