how convert date(02/07/2012) to Tuesday, Febraury 7, 2012
<p>Can any one please help me how to convert date(02/07/2012) to Tuesday, Febraury 7, 2012.
And how can i relate it to datepicker.</p>

<p>OR</p>

<p>is there any date picker which provides date like Tuesday, Febraury 7, 2012 ,when user selects date from datepicker.And how can i add next and previous buttons to the date picker.</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
  &lt;link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"&gt;         
&lt;/script&gt;
&lt;script&gt;
        $(function() {
            $( "#datepicker" ).datepicker();


        });
   &lt;/script&gt;
&lt;/head&gt;  
&lt;body&gt;  
    &lt;div&gt;

    &lt;p&gt;Date: &lt;input type="text" id="datepicker"&gt;&lt;/p&gt;

    &lt;/div&gt;
&lt;/body&gt;

&lt;script&gt;

$("#datepicker").click(function(){
    var date = $("#datepicker").val();

    var date_obj = new Date(date);

    var months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
    var days = ["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"];

    var date_str = days[date_obj.getMonth()] + ", " + months[date_obj.getMonth()] + " " + date_obj.getDate() + ", " + (1900+date_obj.getYear());

    alert(date_str);
});
&lt;/script&gt;
&lt;/html&gt;
</code></pre>

<p>I tried like this but its just alert before date picker.
Which event I have to use here?
Can anyone help me please? Thanks in advance.</p>
