datepicker setDate fire onSelected

datepicker setDate fire onSelected

Hi,
I'm using datepicker from the UI package. I have a case when I have to programatically set up the date selected. I use the setDate method and this works fine. However, I'd like to fire the onSelected event once I have programatically selected the date. Is there any way to do it? How can I fire the event programatically (I don't know what format should I use for the dateText parameter, and how to set the $(this) and inst parameters).

Thanks!