Javascript date object
var d = new Date(); //Create a date object console.log(d); //Sat Nov 15 2014 01:30:01 GMT-0500 (EST) console.log(d.getDate()); //The date of the month(1-31) console.log(d.getDay()); //The day of the wek(0-6) console.log(d.getFullYear()); //The year in YYYY format console.log(d.getMonth()); //The month(0-11) console.log(d.getHours()); //The hour (0-23) console.log(d.getMinutes()); //The minute (0-59) console.log(d.getSeconds()); //The second (0-59) console.log(d.getMilliseconds()); //The millisecond (0-999) console.log(d.getTime()); // The time in milliseconds since 1970/01/01
Search within Codexpedia
Custom Search
Search the entire web
Custom Search
Related Posts