What Is the Date Object?
Constructor
Date()
-
When called as a constructor, returns a new
Date
object. When called as a function, returns a string representation of the current date and time.
Date()
When called as a constructor, returns a new Date
object. When called as a function, returns a string representation of the current date and time.