El objeto Date se utiliza para trabajar con fechas y horas.
Fecha objetos son creados con new Date () .
Hay cuatro maneras de crear instancias de una fecha:
var d = new Date();
var d = new Date(milliseconds);
var d = new Date(dateString);
var d = new Date(year, month, day, hours, minutes, seconds, milliseconds);
Para ver un tutorial sobre la fecha y la hora, lea nuestra Fecha Tutorial de JavaScript .
Description
Returns the function that created the Date object's prototype
Allows you to add properties and methods to an object