IE8 not initializing function properties in javascript.
<p>I have the following javascript. This extends keith woods jquery date picker. In chrome, ff the following alerts a date value. However in ie 8 i get [object, object]</p>

<pre><code>&lt;script type="text/javascript"&gt;&lt;!--
var defaultDate = '06/01/2011';

$(function() {


    $('#inlineDatepicker').calendarsPicker({onSelect: showDate, defaultDate: defaultDate, selectDefaultDate: true, changeMonth:false, onDate: nationalDays, prevText: '&amp;nbsp;',  nextText: '&amp;nbsp;'});

});


function nationalDays(date, inMonth) { 

    alert(date); // doesn't return date in ie 8
}


function showDate(date) {   
    var start = date.toString('dd-MM-yyyy');
    var url = '/events?s=' + start;
    window.location = url;
}

--&gt;&lt;/script&gt;
</code></pre>
