English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
toUTCString()The method converts a date to a string using UTC time.
toUTCString()The returned value is a string whose format is similar toDate.toString()Same, but the timezone offset (UTC) is zero.
date.toUTCString()
var d = new Date(); var str = d.toUTCString();Test and See‹/›
All browsers fully support the toUTCString() method:
Method | |||||
toUTCString() | Yes | Yes | Yes | Yes | Yes |
Return Value: | String representation of dates using the UTC timezone |
---|---|
JavaScript Version: | ECMAScript 1 |