|
|
we have this code. we should make comparison of data from representation with date parameter now. what do we do not so? please, help us! as a result there should be a comparison in a cycle to apply to styles
dt = session.createDateTime("Today");
var idx = viewEntry.getColumnValues().get(12);
return idx
asd = @Text(idx);
return asd
dt1 = session.createDateTime(asd);
if (dt1.timeDifference(dt)==0){
return "present"
}else if (dt1.timeDifference(dt)>0){
return "future"
}else if (dt1.timeDifference(dt)<0){
return "past"
} else {
return "&&&"
}
|