mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at ruby-v 240 B view raw
1// we need the date in the form yyyy-MM-dd to pass to the input 2export function toSimpleDateString(date: Date | string): string { 3 const _date = typeof date === 'string' ? new Date(date) : date 4 return _date.toISOString().split('T')[0] 5}