aboutsummaryrefslogtreecommitdiffstats
path: root/app/src/lib/helpers.ts
diff options
context:
space:
mode:
authorivar <i@oiee.no>2025-12-26 13:18:15 +0100
committerivar <i@oiee.no>2025-12-26 13:18:15 +0100
commitfe0fe074ec8e8959bbdeff0ccc7f68d20b30e963 (patch)
tree032fcc7ee0b72899405a5046e7761d71fb029c9c /app/src/lib/helpers.ts
parent874e1572298531dde9bc1d3ccdb704af0a045605 (diff)
downloadsparebank1-actualbudget-fe0fe074ec8e8959bbdeff0ccc7f68d20b30e963.tar.xz
sparebank1-actualbudget-fe0fe074ec8e8959bbdeff0ccc7f68d20b30e963.zip
WIP form
Diffstat (limited to 'app/src/lib/helpers.ts')
-rw-r--r--app/src/lib/helpers.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/src/lib/helpers.ts b/app/src/lib/helpers.ts
new file mode 100644
index 0000000..35b5f65
--- /dev/null
+++ b/app/src/lib/helpers.ts
@@ -0,0 +1,5 @@
+import type { Temporal } from "temporal-polyfill";
+
+export function instantAsHtmlInputValueString(instant: Temporal.Instant) {
+ return instant.toString().split("T")[0]
+} \ No newline at end of file