silverwolf-x's picture
download
raw
414 Bytes
import { asDate } from "@prismicio/helpers";
import { DateField } from "@prismicio/types";
const formatter = new Intl.DateTimeFormat("en-US", {
month: "long",
day: "numeric",
year: "numeric",
});
type DateProps = {
dateField: DateField;
};
export default function Date({ dateField }: DateProps) {
const date = asDate(dateField);
return <time dateTime={dateField}>{formatter.format(date)}</time>;
}

Xet Storage Details

Size:
414 Bytes
·
Xet hash:
b0a71924e3365830a10d1b673077c54232bbfe84dcf18da3af888d273f29e315

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.