Answers for "get month MM javascript"

17

Javascript get month name

var  months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
var d = new Date();
var monthName=months[d.getMonth()]; // "July" (or current month)
Posted by: Guest on July-31-2019
1

get month angular with 0

("0" + ((new Date()).getMonth() + 1)).slice(-2)
Posted by: Guest on September-29-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language