added projects
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
rei
2022-12-29 13:42:04 +01:00
parent 446c4a4241
commit e545a596ec
9 changed files with 474 additions and 32 deletions

10
utils/general.ts Normal file
View File

@@ -0,0 +1,10 @@
export const formatDate = (date: string) => {
if (!date) return null;
const [day, month, year] = date.split(".");
const d = new Date(`${year}-${month}-${day}`);
return d.toLocaleDateString("en-US", {
month: "long",
day: "numeric",
year: "numeric",
});
};