ECMAScript: Date
Modules
ES5 features with fixes: es.date.to-json and es.date.to-primitive.
Built-ins signatures
class Date {
toJSON(): string;
@@toPrimitive(hint: 'default' | 'number' | 'string'): string | number;
}
Entry points
core-js/es|stable|actual|full/date
core-js(-pure)/es|stable|actual|full/date/to-json
Examples
new Date(NaN).toString(); // => 'Invalid Date'