How to get the selected date in the datepicker calendar

How to get the selected date in the datepicker calendar


This is probably a silly question but,
I was able to implement the inline calendar with the required options/
design however It's not really clear from the documentation how I can
get the date a user selects.
The datepicker calendar is assigned to a div (and not a text input
field) but I just need to redirect the user to a url according to the
date he selected.
Please advise.
Guy Nesher