ChronosChronos

toUTCString

Returns a string representation of the date and time in UTC.

toUTCString()

Returns a string representation of the date and time in UTC.

Signature

toUTCString(): string

Return Type

string - UTC Date string

Note

  • It is just a wrapper over native Date.prototype.toUTCString().
  • Does not depend on system timezone or provided timezone. Always returns UTC date string.

Example

playground.ts

Last updated: Fri, Jun 19, 2026 06:06:59PM (UTC)

On this page