Date - JavaScript | MDN Constructor Date() When called as a function, returns a string representation of the current date and time. All arguments are ignored. The result is the same as executing new Date().toString(). new Date() When called as a constructor, returns a new Date object. Syntax new Date() new Date(value) new Date(dateString) new Date(dateObject) new Date(year, monthIndex) new Date(year, monthIndex, day) new Date(year, monthIndex, day, hours) new Date(year, monthIndex, day, hours, minutes) new Date(year, monthIndex, day, hours, minutes, seconds) new Date(year, monthIndex, day, hours, minutes, seconds, milliseconds) Date()