···1616 return false
1717 }
1818}
1919+2020+export function localDateString(date: Date) {
2121+ // can't use toISOString because it should be in local time
2222+ const mm = date.getMonth()
2323+ const dd = date.getDate()
2424+ const yyyy = date.getFullYear()
2525+ // not padding with 0s because it's not necessary, it's just used for comparison
2626+ return `${yyyy}-${mm}-${dd}`
2727+}