<?php echo date('d M Y'); ?>
Result: 29 Sep 2019
So easy, so elegant!
Seems there is no similar method to do this in javascript?
My try:
let d = new Date();
console.log(d.getDate() + ' ' + (d.getMonth()+1) + ' ' + d.getFullYear());
Result: 29 9 2019
But I need short month name instead of integer.
And yes, I saw many solutions using library or creating an array of months names, but I'm interested - is there any native and core javascript way?