Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get current year in nodejs

const todaysDate = new Date()
const currentYear = todaysDate.getFullYear()
// 2020
Source by coderrocketfuel.com #
 
PREVIOUS NEXT
Tagged: #current #year #nodejs
ADD COMMENT
Topic
Name
5+2 =