(date: Date)
| 50 | weekEnd: string; |
| 51 | }): string => { |
| 52 | const format = (date: Date) => |
| 53 | date.toLocaleDateString('en-US', { |
| 54 | month: 'short', |
| 55 | day: 'numeric', |
| 56 | timeZone: 'UTC', |
| 57 | }); |
| 58 | const lastDay = new Date(new Date(weekEnd).getTime() - 24 * 60 * 60 * 1000); |
| 59 | |
| 60 | return `${format(new Date(weekStart))} to ${format(lastDay)}`; |
no outgoing calls
no test coverage detected