This commit is contained in:
Shu Uesugi
2020-04-19 14:12:41 -07:00
parent 7357e384a6
commit 306679ed0c
21 changed files with 8 additions and 8 deletions

View File

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