For example, how can I get January?
var objDate = new Date("01/11/2016");
var monthNames = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];
var d = new Date();
document.write("The current month is " + monthNames[d.getMonth()]);
I did it in an arrangement.
© 2024 OneMinuteCode. All rights reserved.