const isSameDate = (dateA, dateB) => dateA.toISOString() === dateB.toISOString();