add a missing snippet of javascript
missing js for reformatting date picker dates to xml format