How to get the current year using typescript in angular6 July 11, 2023 by Tarik Try, alert((new Date()).getFullYear());