github.com/jbramsden/hugo@v0.47.1/docs/content/en/functions/dateformat.md (about)

     1  ---
     2  title: dateFormat
     3  description: Converts the textual representation of the `datetime` into the specified format.
     4  godocref: https://golang.org/pkg/time/
     5  date: 2017-02-01
     6  publishdate: 2017-02-01
     7  lastmod: 2017-02-01
     8  categories: [functions]
     9  menu:
    10    docs:
    11      parent: "functions"
    12  keywords: [dates,time,strings]
    13  signature: ["dateFormat LAYOUT INPUT"]
    14  workson: []
    15  hugoversion:
    16  relatedfuncs: [Format,now,Unix,time]
    17  deprecated: false
    18  ---
    19  
    20  `dateFormat` converts the textual representation of the `datetime` into the specified format or returns it as a Go `time.Time` type value. These are formatted with the layout string.
    21  
    22  ```
    23  {{ dateFormat "Monday, Jan 2, 2006" "2015-01-21" }} → "Wednesday, Jan 21, 2015"
    24  ```
    25  
    26  {{% warning %}}
    27  As of v0.19 of Hugo, the `dateFormat` function is *not* supported as part of Hugo's [multilingual feature](/content-management/multilingual/).
    28  {{% /warning %}}
    29  
    30  See the [`Format` function](/functions/format/) for a more complete list of date formatting options in your templates.
    31