feat(core-shared): add toIsoString helper

This commit is contained in:
2026-05-04 20:37:26 +02:00
parent 3ffe752c7a
commit 520a792b7f
2 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
export function toIsoString(input: Date | string | null | undefined): string | null {
if (input === null || input === undefined) return null;
if (input instanceof Date) return input.toISOString();
return input;
}