d60fada097
* Strapi Example * Fix og image URL * Remove next.config.js * Apply updates * Remove API_URL * Bugfixes * Finish Strapi README * Deploy Strapi * Add strapi examples * now → vercel [ch1796] * Use npx * Minor readme update * Prettier fix Co-authored-by: Luis Alvarez <luis@vercel.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
6 lines
205 B
JavaScript
6 lines
205 B
JavaScript
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>
|
|
}
|