Retreive day on clicked day (month view)

Is there a way to achieve this?. Someone already mentioned that I could use Raw data, the problem is that I dont know where I should put the code function when the date is clicked.

Any help is appreciated.

Thanks