const dateStr = '2024-05-22T16:53:03.682Z'; const date = new Date(dateStr); const daysOfWeek = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']; const dayName = daysOfWeek[date.getUTCDay()]; return dayName