mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 15:26:41 -04:00
Omit ISO
This commit is contained in:
parent
cbb5b83674
commit
be0b64a468
@ -17,7 +17,7 @@ relatedfuncs: [Format,now,Unix,time]
|
|||||||
deprecated: false
|
deprecated: false
|
||||||
---
|
---
|
||||||
|
|
||||||
`dateFormat` converts an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp string `INPUT` into the format specified by the `LAYOUT` string.
|
`dateFormat` converts a timestamp string `INPUT` into the format specified by the `LAYOUT` string.
|
||||||
|
|
||||||
```
|
```
|
||||||
{{ dateFormat "Monday, Jan 2, 2006" "2015-01-21" }} → "Wednesday, Jan 21, 2015"
|
{{ dateFormat "Monday, Jan 2, 2006" "2015-01-21" }} → "Wednesday, Jan 21, 2015"
|
||||||
@ -29,4 +29,4 @@ As of v0.19 of Hugo, the `dateFormat` function is *not* supported as part of Hug
|
|||||||
|
|
||||||
See [Go’s Layout String](/functions/format/#gos-layout-string) to learn about how the `LAYOUT` string has to be formatted. There are also some useful examples.
|
See [Go’s Layout String](/functions/format/#gos-layout-string) to learn about how the `LAYOUT` string has to be formatted. There are also some useful examples.
|
||||||
|
|
||||||
See the [`time` function](/functions/time/) to convert an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp string to a Go `time.Time` type value.
|
See the [`time` function](/functions/time/) to convert a timestamp string to a Go `time.Time` type value.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user