Lib: Move dateformat function to lib

This commit is contained in:
2025-02-06 23:06:21 +01:00
parent 0b64425284
commit bbd700f755
2 changed files with 12 additions and 7 deletions

4
src/lib/date.ts Normal file
View File

@ -0,0 +1,4 @@
import { format } from "date-fns";
export const format_date = (date: string, formatstring: string): string =>
format(new Date(date), formatstring);