Question: I would like to know how I can change the date in my "selectedDate" with jquery datepick. Here's my HTML where I want the magic to show

```
<h3>Historique des tâches (<span class="selectedDate"><?= date("Y-m-d");?></span>) <span class="chooseDate">Choisir date</span> <span class="taskDate"></span></h3>

```

And the javascript

```
$(".chooseDate").toggle(function() {
    $(this).text("Choisir date");
    $(".taskDate").datepick({
        onSelect: function(date) {
          alert($.datepick.formatDate(date))
        }
      }); 
}, 
function() {
  $(this).text("Choisir date");
    $(".taskDate").datepick('destroy'); 
});

```

When I select a date it should popup an alert message with the selected date in yyyy-mm-dd format but nothing happens.

Could someone help me?

Thanks

Update (Found it):

```
$(".taskDate").datepick({
      onSelect: function(test){
        var newDate = new Date(test);
        alert(newDate.getFullYear()+'-'+(newDate.getMonth()+1)+'-'+newDate.getDate());
      }
    });

```

I've just reformat the date it gave me to the one I wanted. Event by telling it the show it in yyyy-mm-dd format it was still showing me the full date with day , time zone, etc...

Thanks guys

Answer: 
Usually the downgrade in performance is only when creating the connection to the database. That operation is intensive for all provider types.

Someone please correct me if I'm wrong, but as of .NET4 Microsoft has created an Oracle driver which I believe allows LINQ to SQL. I know it was in the works at one point and I know the Oracle driver is for .NET4, so I'm assuming that's the same one. 

However, LINQ to Entities is db agnostic so as long as you stick with that you should be ok.
I can't discuss the performance, but do you store the connection string to the database in a configuration file? It seems to me that changing the connection mechanism is the more complicated solution to changing the connection string to find the correct server.