I'm converting a epoch date into local date:
$("time").each(function() {
var date = $(this).text(); // gives me "1325419200000"
newDate = new Date(date); // gives me Invalid Date
});
html:
<td class="date">
<time datetime="{{date}}">{{date}}</time>
</td>
how can i convert epoch date into local date in the format: 'MMM DD, YYYY h:mm:ss A'. how can i achieve this?