What am I missing?

var startdate = globals.G_estDate
startdate.setHours(00)
startdate.setMinutes(00)
startdate.setSeconds(00)
var thestart = utils.dateFormat(startdate, 'MM-dd-yyyy HH:mm:ss')

var enddate = globals.G_EndDate
enddate.setHours(00)
enddate.setMinutes(00)
enddate.setSeconds(00)
var theend = utils.dateFormat(enddate, 'MM-dd-yyyy HH:mm:ss')

forms.Incompletes_for_SpecificDates.controller.find()
if(globals.G_EndDate != null)
{
forms.Incompletes_for_SpecificDates.estimateddate = thestart + "..." + theend+ '|MM-dd-yyyy HH:mm:ss';
forms.Incompletes_for_SpecificDates.completeddate = "^";
}
else 
{	
forms.Incompletes_for_SpecificDates.estimateddate = thestart|MM-dd-yyyy HH:mm:ss';
forms.Incompletes_for_SpecificDates.completeddate = "^";
}
	
	
forms.Incompletes_for_SpecificDates.controller.search();

I get the following error message:

validation error …
message missing, before statement

Help. TIA.

Looks like this

forms.Incompletes_for_SpecificDates.estimateddate = thestart|MM-dd-yyyy HH:mm:ss';

should be

forms.Incompletes_for_SpecificDates.estimateddate = thestart + '|MM-dd-yyyy HH:mm:ss';

Thank you so much. Or should I say vielen dank!