ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: jplevene on April 20, 2026, 10:01:52 pm

Title: Date column filter with lte, equal or gte
Post by: jplevene on April 20, 2026, 10:01:52 pm
I want to add a filter for a date column with lte, equal or gte options for the date selected in the datepicker.


Basically I need to have a datepicker in the column filter, limited to a choice of lte, equal or gte and the date chosen in the drop down fileter needs to be converted to UTC before compare to the data (I could even include the time at start and end of the day for the compare so it could be a simple string compare)


I use moment so I can convert a local date to UTC by:
as_utc = moment(local_date).utc();
startUtc = moment(local_date).startOf('day').utc().format("YYYY-MM-DD HH:mm:ss");
endUtc = moment(local_date).endOf('day').utc().format("YYYY-MM-DD HH:mm:ss");
etc...


Title: Re: Date column filter with lte, equal or gte
Post by: paramvir on April 21, 2026, 07:14:52 pm
Formula Column with a getter/setter rather than overriding multiple individual properties.

Recommended Approach: Two-Way Column Dependency

Instead of applying manual customizations to column.render and column.filter.conditions for every logic check, you can set up a dependency between a visible "Local" column and a hidden "UTC" column.



Key Resources

Title: Re: Date column filter with lte, equal or gte
Post by: paramvir on April 26, 2026, 07:14:33 am
Upon re-evaluating the built-in capabilities of the grid, there is an even more efficient approach. UTC dates are natively supported by pqGrid, which eliminates the need for complex workarounds.

The Simplified Solution: ISO 8601 Compliance

You do not need to set up two-way column dependencies or manual conversions. By ensuring your data follows standard UTC formatting, the grid handles the heavy lifting automatically.



Why this is the best approach: