Sherzy
3/17/2016 - 4:59 PM

Dates

Dates


var d = new Date(); // from .Net return LastUpdateTime.ToString("o"); 
var d = new Date(milliseconds);
var d = new Date(dateString);
var d = new Date(year, month, day, hours, minutes, seconds, milliseconds);

var monthNames = ["January", "February", "March", "April", "May", "June",
  "July", "August", "September", "October", "November", "December"];

getDate()     // Returns the day of the month (from 1-31)
getDay()      // Returns the day of the week (from 0-6)
getFullYear() // Returns the year (four digits)
getHours()    // Returns the hour (from 0-23)
getMinutes()  // Returns the minutes (from 0-59)
getMonth()    // Returns the month (from 0-11)