get current year in javascript ejs code example Example: ejs current year <%= new Date().getFullYear();%>