gcg-website/static/admin/previews/page-previews/components/date-format.js
2023-05-29 16:22:34 +02:00

6 lines
148 B
JavaScript

const DateFormat = ({ date, format }) => {
return new Intl.DateTimeFormat("de-DE", format).format(new Date(date));
};
export default DateFormat;