I am trying to convert "1983-24-12" to December 24, 1983 using Javascript.
Do we have any ready made function in Javascript which makes this conversion same as simpledateformat
in Java?
I am trying to avoid taking months in Arrays and then do the manipulation.
My Code is as below.
//For Date Format
months = ["", "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
dob = responseObj.data.personDetail.birthDate.split('-');
month = months[dob[1]];
responseObj.data.personDetail.birthDate = month +" "+dob[2] +","+dob[0];
Kindly help.