Trim input dates in date_popup

Trim input dates in date_popup to pass the validation and remove all spaces before and after date and time