(left: Date, right: Date)
| 186 | } |
| 187 | |
| 188 | export const isDateOnlyEqual = (left: Date, right: Date): boolean => { |
| 189 | const formattedLeft = new Date( |
| 190 | left.getFullYear(), |
| 191 | left.getMonth(), |
| 192 | left.getDate(), |
| 193 | ); |
| 194 | const formattedRight = new Date( |
| 195 | right.getFullYear(), |
| 196 | right.getMonth(), |
| 197 | right.getDate(), |
| 198 | ); |
| 199 | |
| 200 | return isEqual(formattedLeft, formattedRight); |
| 201 | }; |
| 202 | |
| 203 | export const getReadHistoryDateFormat = (currentDate: Date): string => { |
| 204 | const today = new Date(); |
no outgoing calls