I have a Date object. How do I render the title portion of the following snippet?
Date
title
I was able to get below output with very less code.
var ps = new Date('2010-04-02T14:12:07') ; ps = ps.toDateString() + " " + ps.getHours() + ":"+ ps.getMinutes() + " hrs";
Output:
Fri Apr 02 2010 19:42 hrs