How to make a format like this in javascript, using Date function:
Jun 23, 2010 12:00 AM
How to make a format like this in javascript, using Date function:
Jun 23, 2010 12:00 AM
var months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
var date = new Date();
console.log(months[date.getMonth()] + " " + date.getDate() + ", " + (date.getYear()+1900) + " " + date.getHours() + ":" + date.getMinutes());
//Example Output: Apr 28, 2013 20:47