diff options
Diffstat (limited to 'app/src/lib/helpers.ts')
| -rw-r--r-- | app/src/lib/helpers.ts | 5 |
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 |
