emailing html now for formatted messages
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export function formatDate(value: unknown) {
|
||||
if (!value) return "—";
|
||||
const d = new Date(value as any);
|
||||
return Number.isNaN(d.getTime()) ? "—" : d.toLocaleString();
|
||||
}
|
||||
Reference in New Issue
Block a user