Hello.
I need to get date format to D MMMM YYYY
Please help.
Hello.
I need to get date format to D MMMM YYYY
Please help.
What did you try so far?
so far I use this script to get the date with the format YYMMDD
var d= new Date(); var m=((d.getMonth()+1)<10)?'0'+(d.getMonth()+1):(d.getMonth()+1); return d.getFullYear().toString().substr(2) +m+d.getDate().toString().padStart(2, "0");
but there is a need to change the date format to D MMMM YYYY, especially about how to get full month name in java script
var Months = ["January","February","March","April","May","June","July","August","September","October","November","December"];
var d= new Date(); return d.getFullYear().toString().substr(2) + " " + Months[d.getMonth()]+ " " + d.getDate().toString().padStart(2, "0");
thanks for the answer and solution to get full month name.
but after I try the result is 23 February 13 (YY MMMM DD)
var Months = ["January","February","March","April","May","June","July","August","September","October","November","December"];
var d= new Date(); return d.getDate().toString().padStart(2, "0") + " " + Months[d.getMonth()]+ " " + d.getFullYear().toString();