Random programming things I'd want to remember

Friday, February 14, 2014

JavaScript: convert milliseconds to a date

Pretty easy, as it turns out:
  var dt = new Date(milliseconds);


And then one can use the standard Date methods available here. JSFiddle.

No comments: