You have to keep track of what you are dealing with, i. e. object, function, method, property, string, number, etc.
"util.scand()" returns an object and not a value. You will have to use either the "Number()" constrictor or the "valueOf()" method to get the number of milliseconds from the epoch date.
var start = util.scand("yyyy-mm-dd", startdate.rawValue).valueOf();
var end = util.scand("yyyy-mm-dd", enddate.rawValue).valueOf();
var checkDate = util.scand("yyyy-mm-dd", "2008/03/20").valueOf();
var xx = 0;
if ( (checkDate >= start & checkDate <= end) {
xx=1;
};
this.rawValue=xx;
I prefer to use the date number rather than the date string since leading zeros and order of the date parts in a string affect the results of the comparison.