toISOString
Returns a date as a string value in ISO format (UTC).
toISOString()
Returns a date as a string value in ISO format (UTC).
Signature
toISOString(): ISODateTimeString<'utc'>Return Type
ISODateTimeString<'utc'> - Standard ISO 8601 string
Notes
- Always returns UTC time
- Consistent with native
Datebehavior
Example
playground.ts
Last updated: Wed, May 20, 2026 06:24:17PM (UTC)
