function toDateString(ms) {
var dt = new Date(ms),
months = ['January', 'February', 'March', 'April', 'May', 'June',
'July', 'August', 'September', 'October', 'November', 'December'];
return dt.getDate() + ' ' + months[dt.getMonth()] + ' ' + dt.getFullYear();
}
alert(toDateString(new Date().getTime() + 86400000));