rsnext/examples/blog-starter/components/date-formatter.js
Fran Zekan 0f41062db0
Examples blogs: fix spelling (#17049)
Throughout some of the blog examples word `formatter` is spelled as `formater`, this PR changes all of them to `formatter`
2020-09-13 13:06:29 +00:00

6 lines
214 B
JavaScript

import { parseISO, format } from 'date-fns'
export default function DateFormatter({ dateString }) {
const date = parseISO(dateString)
return <time dateTime={dateString}>{format(date, 'LLLL d, yyyy')}</time>
}