O'Reilly logo

jQuery and JavaScript Phrasebook by Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with Dates

A useful built-in JavaScript object is the Date object. The Date object allows you to get the user’s time by accessing the system clock through the browser. This allows you to use JavaScript to get the local time for the user. The Date object also provides methods for manipulating the time values to determine time deltas and generate time and date strings.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required