The end of life of Windows Server 2012 is on 10/9/2018, and it will receive Extended support until 10/10/2023.
The end of life of Windows Server 2016 is on 11/1/2022, and it will receive Extended support until 11/1/2027.
The end of life of Windows Server 2019 is on 1/9/2024, and it will receive Extended support until 1/9/2029.
The end of life of Windows Server 2022 is on 10/13/2026, and it will receive Extended support until 10/14/2031.