I have a unix timestamp, e.g., 1313564400000.00. How do I convert it into Date object and get month/year/day accordingly? The following won\'t work:
function
Instead of using parse, which is used to convert a date string to a Date, just pass it into the Date constructor:
parse
Date
var date = new Date(timestamp);
Make sure your timestamp is a Number, of course.
Number