Error when using DateInterval

The problem was in the placement of a quotation mark in my form that turned the eventEndDate into a string. Thank for those that had a look.