[Solved] I need a specific format, from JavaScript Date object [closed]
[ad_1] Try this let d = new Date(); const monthNames = [“Jan”, “Feb”, “Mar”, “Apr”, “May”, “June”, ” July”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec” ]; const d = new Date(); console.log(d.getHours() + “, ” + monthNames[d.getMonth()] + ” ” + d.getDate()); You can change monthNames to suit your needs. [ad_2] solved I need a specific … Read more