how to get the current month that the user is viewing

I am fetching data from the database based on which month is the user viewing. Is there a way i can get the current month and also how can I get to know when the user switches from one month to another through any of the views day, week or month?

Hello,

I believe you can use getState function for that.

Best regards,
Ilya