I understand how to do this outside of react. I have a date string that is returned from API in an object. I need to reformat it so instead of "2022-12-13T06:00Z" it would read "December 13". The object holds utcStart as "2022-12-13T06:00Z". Currently the below displays as "2022-12-13T06:00Z"
const eventDates = useRecoilValue(eventDatesState);
return (
<Grid item xs={12}>
eventDates.map (data =>(
<ListItem>
<span className="date">{eventDates.utcStart}</span>
</ListItem>
))
</Grid>
)
Since it is in a map function, I don't know how to do this for each one.This doesn't work
<span className="date">{new Date(calendarContent.utcStart)}</span>