# .Date.Format

**URL:** <https://discourse.gohugo.io/t/date-format/11723>\
**Category:** support\
**Created:** [April 26, 2018, 12:01pm UTC](https://discourse.gohugo.io/t/date-format/11723 "2018-04-26T12:01:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [April 26, 2018, 12:01pm UTC](https://discourse.gohugo.io/t/date-format/11723/1 "2018-04-26T12:01:54Z")

</div>

I hope I’m not wrong.

.Date.Format “2006-01-02T15:04:05Z07:00” give a string 2018-04-24T15:50:00+02:00

Is “+” not an valid XML sign???  
Or is .Format wrong??  
I want to get 2018-04-24T15:50:00+02:00

---

<div class="post-metadata">

**Author:** ![ju52](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ju52/32/6749_2.png) [@ju52](https://discourse.gohugo.io/u/ju52)\
**Post date:** [April 26, 2018, 12:39pm UTC](https://discourse.gohugo.io/t/date-format/11723/2 "2018-04-26T12:39:20Z")

</div>

I found an workaround

Date\*\*.UTC.\*\*Format “2006-01-02T15:04:05Z07:00” give a string 2018-04-24T15:50:00Z

Any feed reader should work correct.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/totallyinformation/32/5668_2.png) [@TotallyInformation](https://discourse.gohugo.io/u/TotallyInformation)\
**Post date:** [April 26, 2018, 2:14pm UTC](https://discourse.gohugo.io/t/date-format/11723/3 "2018-04-26T14:14:57Z")

</div>

If you are being litteral, then you might have a slight issue since you asked for a date/time in Zone UTC+7 but are getting one in zone UTC (the trailing Z indicates Zulu time which is UTC or GMT). So you might just want to double check whether you are actually getting the correct time.
