GatsbyJS date formatting
2019-10-21
GatsbyJS allows you to set a format for a field of type date. See the source code of this website.
node {
frontmatter {
date(formatString: "YYYY-MM-DD")
}
}
Under the hood, GatsbyJS uses moment.js
.
2019-10-21
GatsbyJS allows you to set a format for a field of type date. See the source code of this website.
node {
frontmatter {
date(formatString: "YYYY-MM-DD")
}
}
Under the hood, GatsbyJS uses moment.js
.