I have to capitalize the first letter of the month in which I'm in on the calendar. For example, on the top of the calendar it says noviembre and it should read Noviembre.view of the calendar component
I console logged the date that comes as props and is a standard DATE format. Also, I tried changing the view value to other options but that changes the title of the calendar.
EDIT: So i didnt copied the code so here is the calendar component
<ReactCalendar
className="h-auto w-full py-6 px-4"
value={dateValue}
maxDate={dayjs().add(90, 'days').toDate()}
next2Label={null}
locale='es-ES'
formatShortWeekday={(locale, dateValue) =>
['D', 'L', 'M', 'M', 'J', 'V', 'S'][dateValue.getDay()]
}
prev2Label={null}
view="month"
minDate={dayjs().toDate()}
tileDisabled={date =>
day ? disabledDays(date.date.toString().toLowerCase()) : false
}
tileContent={({ date }) => handleTileContent(date)}
onClickDay={date => setDateValue(date)}
/>