bugfix #188: convert endDate to Datetime object