query = this.parmQuery();
query.dataSourceNo(1).addRange(fieldNum(SalesTable,createdDateTime)).value(SysQuery::range(fDate, tdate));//strfmt('(ApplicationDateTime >= %1 && ApplicationDateTime <= %2)',Date2StrXpp(fDate), Date2StrXpp(tDate)));
queryRun = new QueryRun(query);
Note : fDate and tDate is paramDate with date type.
*This post is locked for comments