Sitemap
Praveen Sripati

Praveen Sripati

A dedicated web developer with a strong background in technology. Love building stuff ❤️

JavaScript Date Methods CheatSheet (Bookmark This)

Apr 7, 2026

--

If you only save one page for JavaScript dates — make it this one.

Press enter or click to view image in full size

📚 Official Docs: MDN Docs

Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size
Press enter or click to view image in full size

Get Praveen Sripati’s stories in your inbox

Join Medium for free to get updates from this writer.

🎯 Quick Mental Model

  • Months are 0-based → Jan = 0, Dec = 11
  • getDay() = weekday, getDate() = actual date
  • Timestamp = milliseconds since Jan 1, 1970 (UTC)
  • Date is mutable (set methods change original object)

🔥 Pro Tips

  • Always use toISOString() for APIs
  • Use Date.now() for performance timestamps
  • Be careful with timezones (use UTC methods if needed)

--

--

Praveen Sripati
Praveen Sripati

A dedicated web developer with a strong background in technology. Love building stuff ❤️