Мы создаем объекты даты, используя функцию конструктора даты.
Обозначение конструктора
var dateObjectName = new Date(); //Creates a date object using the system current date & time var dateObjectName = new Date(daate:String); //Creates a date object using the given date string var dateObjectName = new Date(year, month, date[, hours[, minuted[, seconds[, ms ]]]]); //Creates a date object using the given parameters var dateObjectName = new Date(value:int); //Creates a date object using the given integer value, representing time in milliseconds
"Читать далее>>"