Skip to content

Instantly share code, notes, and snippets.

View joedotjs's full-sized avatar
🤹‍♀️

Joseph Alves joedotjs

🤹‍♀️
  • App Academy
  • Weehawken, NJ
View GitHub Profile
// Date Object CheatSheet
// The Date object is used to work with dates and times.
// More: http://www.w3schools.com/jsref/jsref_obj_date.asp
// 1. Instantiating a Date.
var date = new Date();
var date = new Date(milliseconds);