(left: Date, right: Date)
| 171 | } |
| 172 | |
| 173 | export const isDateOnlyEqual = (left: Date, right: Date): boolean => { |
| 174 | const formattedLeft = new Date( |
| 175 | left.getFullYear(), |
| 176 | left.getMonth(), |
| 177 | left.getDate(), |
| 178 | ); |
| 179 | const formattedRight = new Date( |
| 180 | right.getFullYear(), |
| 181 | right.getMonth(), |
| 182 | right.getDate(), |
| 183 | ); |
| 184 | |
| 185 | return isEqual(formattedLeft, formattedRight); |
| 186 | }; |
| 187 | |
| 188 | export const getReadHistoryDateFormat = (currentDate: Date): string => { |
| 189 | const today = new Date(); |
no outgoing calls