Replace in DateField

This commit is contained in:
Eric Bailey
2024-06-18 16:38:27 -05:00
parent 557d876ba1
commit bd68ff4ecd
+1 -5
View File
@@ -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