# Date.toUTCString()

The toUTCString() method converts a date to a string, using the UTC time zone.

```javascript
var event = new Date('14 Jun 2017 00:00:00 PDT');

console.log(event.toUTCString());
// expected output: Wed, 14 Jun 2017 07:00:00 GMT

```

## Syntax <a href="#syntax" id="syntax"></a>

```javascript
dateObj.toUTCString()
```

**Return value**

A string representing the given date using the UTC time zone.

## Description <a href="#description" id="description"></a>

The value returned by `toUTCString()` is a human readable string in the UTC time zone. The format of the return value may vary according to the platform. The most common return value is a RFC-1123 formatted date stamp, which is a slightly updated version of RFC-822 date stamps.

## Examples <a href="#examples" id="examples"></a>

#### Using `toUTCString()` <a href="#using_toutcstring" id="using_toutcstring"></a>

```javascript
var today = new Date('Wed, 14 Jun 2017 00:00:00 PDT');
var UTCstring = today.toUTCString(); // Wed, 14 Jun 2017 07:00:00 GMT
```

## References <a href="#references" id="references"></a>

{% embed url="<https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString>" %}

## Contributors to this page <a href="#contributors-to-this-page" id="contributors-to-this-page"></a>

Uros Durdevic
