Fix issue #197 - datepicker from date objects