add end date and create logo and fix filter

This commit is contained in:
arifal
2026-04-17 00:16:31 +07:00
parent 82c1da9951
commit 7159e9108f
35 changed files with 743 additions and 82 deletions
+10
View File
@@ -17,3 +17,13 @@ export function formatDate(date: Date | string): string {
dateStyle: "long",
}).format(new Date(date));
}
export function formatDateRange(
start: Date | string,
end?: Date | string | null
): string {
const startStr = formatDate(start);
if (!end) return startStr;
const endStr = formatDate(end);
return `${startStr}${endStr}`;
}