Patch for datepicker

The date returned by datepicker was not correct for us (day and month have been in the wrong order). Therefore we added three lines to correct the format of datepicker. I hope this will others help, too.