How to get the selected Date from the calendar control?
<p>I am creating a DatetimePicker User control. I just want to know how to get the selected date of the calendar (asp.net control) control using jQuery. I used this code, but it's wrong.</p>

<pre><code>$(document).ready(function()  {
     $(".UserCalender").click(function () { 

     var a = $('.CalenderDiv:selected').text(); 
     alert(a);        
     });
 });
</code></pre>

<p>What's wrong with this?</p>
