formatUTC
Format a date in UTC timezone using format tokens
formatUTC()
Notes
formatUTC()is just a wrapper around theformat()method with theuseUTCoption set totrue. It is provided for convenience.- Format tokens are same as format method.
Signature
formatUTC(format?: string): stringParameters
format: Format string (default:'dd, mmm DD, YYYY HH:mm:ss:mss')
Return Type
string - Formatted UTC date
Notes
- Always uses UTC time regardless of instance configuration
Example
playground.ts
Last updated: Thu, May 21, 2026 04:59:08PM (UTC)
