Change calendar view when date is clicked on

I’m using a calendar in a modal and am showing the month view initially. I want to switch to day view when a date is clicked on. How do I achieve that?

Community Page
Last updated: