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.

Get jQuery and JavaScript Phrasebook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.