# Specify date format in archetype?

**URL:** <https://discourse.gohugo.io/t/specify-date-format-in-archetype/9015>\
**Category:** support\
**Created:** [October 28, 2017, 11:02am UTC](https://discourse.gohugo.io/t/specify-date-format-in-archetype/9015 "2017-10-28T11:02:25Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [November 4, 2017, 3:42pm UTC](https://discourse.gohugo.io/t/specify-date-format-in-archetype/9015/4 "2017-11-04T15:42:12Z")

</div>

`.Date` is in this context a preformatted string (you may ask me if that was a clever choice, but I’m not going bak on that one.

Do this:

```auto
+++
title = "blah"
date = "{{ now.Format "2006-01-02" }}"
+++

```

---

_[View the full topic](https://discourse.gohugo.io/t/specify-date-format-in-archetype/9015)._
