and i want to call a below function to be fire when date is selected
function lastDate(date) { var lDate = date var myDate = new Date(lDate ); }