Fixed a bug where the date from the datepicker cannot be parsed. Fixes #25.