Plfm 2677

handle dates in table queries