I have this date 2015/08/06 06:00 and i want to convert it to 6th August 2015 at 6am. I know how to do this in php but having trouble with jquery.
var monthNames = ["January", "February", "March", "April", "May", "June",
"July", "August", "September", "October", "November", "December"
];
var d = new Date('2015/08/06 06:00');
var d_formatted = d.getDate() + '/' + monthNames[d.getMonth()] '/' + d.getFullYear();
How do i get the date suffix and the time?