Time inside a date object is stored as milliseconds since Jan 1, 1970. new Date(06,01,02) // produces "Fri Feb 02 1906 00:00:00 GMT-0600 (Central Standard Time)" new Date(06,01,02).toLocaleString() // produces "Friday, February 02, 1906 00:00:00" new Date(06,01,02) - new Date(06,01,01) // produces "86400000"
Javascript
Topic: JS Objects
What's the Date object using JavaScript?
Browse random answers:
What is a javascript object ?
How to create an Object in JavaScript ?
What are windows object and navigator object in JavaScript?
How do you assign object properties in JavaScript?
How can JavaScript language be separated from objects?
What are the different objects used in JavaScripts?
Why is object naming important to use in JavaScript?
How do you assign object properties?
What is this keyword?
How to Accessing Object Properties?
How to Accessing Objects Methods?
What's the Date object using JavaScript?