HUGO
Date in Template from Data (json)
support
kaushalmodi
May 9, 2018, 7:34pm
2
Hello!
I haven’t tried, but this might work:
{{ dateFormat "2006-02-01" (time .published) }}
5 Likes
Content from a JSON file
show post in topic
Related topics
Topic
Replies
Views
Activity
Why won't time.Format accept input read from Json data?
support
5
560
January 12, 2023
Reformat a date from getCSV data?
support
1
359
May 24, 2019
Get Date value of frontmatter .Params object without manual conversion
support
7
1370
May 31, 2018
dateFormat with date and time from frontmatter
support
18
8117
March 7, 2017
How to prevent Hugo from reformat time (publishDate, Date)
support
5
1016
March 19, 2020