Here is the output i want screenshot, but i am not getting , here is the sample to get days `
const days = () => {
const dateFormat = 'E';
const days = [];
let startDate = startOfWeek(currentDate);
for (let i = 0; i < 7; i++) {
days.push(<div key={i}>{format(addDays(startDate, i), dateFormat)}</div>);
}
return (
<>
<ul className="card__body--days">
<li> {days}</li>
</ul>
</>
);
};`
Can anyone tell me how to acheive that week numbers along with dates, I am using date-fns