Sets default value of enddate to start date if enddate is blank