gcg-website/static/admin/previews/field-previews/date-preview.js

14 lines
251 B
JavaScript
Raw Normal View History

const DatePreview = ({ value }) =>
2023-05-29 16:22:34 +02:00
h(
"p",
{},
new Intl.DateTimeFormat("de-DE", {
year: "numeric",
month: "2-digit",
day: "2-digit",
hour12: false,
}).format(new Date(value))
);
2023-04-21 14:52:51 +02:00
export default DatePreview;