📘Date

🚧 under construction

JSobjectbuilt-in ⟩ Date

points in time.

new Date()                                // current date and time
// month starts from 0, be careful❗️ 
new Date(2009, 11, 9)                     // December❗️ 
new Date(2009, 11, 9, 12, 59, 59, 999)
  • month numbers start at 0 (11 = December),

  • day numbers start at 1.

This is confusing and silly. Be careful

Last updated