Answers for "nodejs code to get current year"

0

how to get current year in nodejs

const todaysDate = new Date()
const currentYear = todaysDate.getFullYear()
// 2020
Posted by: Guest on January-14-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language