Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript Date getMonth()

const d = new Date();
let month = d.getMonth();  // 5

const month = ["January","February","March","April","May","June","July","August","September","October","November","December"];
const d = new Date();
let name = month[d.getMonth()]; // June
 
PREVIOUS NEXT
Tagged: #JavaScript #Date
ADD COMMENT
Topic
Name
1+9 =