From bd68ff4ecd47ce6a4e9558257813530287c322c9 Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Tue, 18 Jun 2024 16:38:27 -0500 Subject: [PATCH] Replace in DateField --- src/components/forms/DateField/utils.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/forms/DateField/utils.ts b/src/components/forms/DateField/utils.ts index c787272fe8..853e009b0c 100644 --- a/src/components/forms/DateField/utils.ts +++ b/src/components/forms/DateField/utils.ts @@ -2,11 +2,7 @@ import {getLocales} from 'expo-localization' const LOCALE = getLocales()[0] -// we need the date in the form yyyy-MM-dd to pass to the input -export function toSimpleDateString(date: Date | string): string { - const _date = typeof date === 'string' ? new Date(date) : date - return _date.toISOString().split('T')[0] -} +export {toSimpleDateString} from '#/lib/strings/time' export function localizeDate(date: Date | string): string { const _date = typeof date === 'string' ? new Date(date) : date