Date object
The built-in JavaScript object for a point in time.
In more detail
Internally it stores the number of milliseconds since 1 January 1970 in UTC. Dates survive structured cloning as real Date objects, but JSON turns them into strings.
Related terms
- structured clone algorithm — The standard JavaScript algorithm for deep-copying values between threads and into storage, which handles Maps, Sets, Dates, typed arrays and circular references.
- JSON.stringify() — The JavaScript function that converts a value into a JSON string; JSON.parse() converts the string back.
Taught in
- Web Workers: Off-Thread Computation And Structured Clone — Frontend Architecture & Web Platform