[Solved] I need a specific format, from JavaScript Date object [closed]


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.

solved I need a specific format, from JavaScript Date object [closed]