# Date/Time of rendering as a variable

**URL:** <https://discourse.gohugo.io/t/date-time-of-rendering-as-a-variable/9629>\
**Category:** support\
**Created:** [December 17, 2017, 2:47pm UTC](https://discourse.gohugo.io/t/date-time-of-rendering-as-a-variable/9629 "2017-12-17T14:47:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ominty](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ominty/32/2716_2.png) [@ominty](https://discourse.gohugo.io/u/ominty)\
**Post date:** [December 17, 2017, 2:47pm UTC](https://discourse.gohugo.io/t/date-time-of-rendering-as-a-variable/9629/1 "2017-12-17T14:47:21Z")

</div>

Hi

is there a way to derive the date and time when a site is built by hugo and use this in a template?  
E. g. when I generate a sitemap as html for the user to see the structure of the whole site I want to have the “last updated: 20xx-xx-xx at xx:xx” string on that page/in the template of that page to automatically update each time I have hugo updated/rendered my site.

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [December 17, 2017, 8:11pm UTC](https://discourse.gohugo.io/t/date-time-of-rendering-as-a-variable/9629/2 "2017-12-17T20:11:41Z")

</div>

You can use the `now` template func.

---

<div class="post-metadata">

**Author:** ![ominty](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/ominty/32/2716_2.png) [@ominty](https://discourse.gohugo.io/u/ominty)\
**Post date:** [December 18, 2017, 4:46pm UTC](https://discourse.gohugo.io/t/date-time-of-rendering-as-a-variable/9629/3 "2017-12-18T16:46:26Z")

</div>

Thanks a lot - works …
