0f41062db0
Throughout some of the blog examples word `formatter` is spelled as `formater`, this PR changes all of them to `formatter`
6 lines
214 B
JavaScript
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>
|
|
}
|