I have a custom table in Acumatica which has a datetime column. In this column I am also preserving the time. I then have another custom inquiry screen on this table and on this screen there is a date-range filter.
The issue I have is that in the filter, the user will only enter the dates (not the time). Is there a clean way to perform the query on the database without taking into consideration the time?
For example if I have a row with the datetime set as 01-06-2020 14:00. and in the date range filter, the user has selected up to 01-06-2020, then this row will not be returned (when I use LessEqual), but I want it returned. I can of course do some work on the filtering side, perhaps programmatically changing the filter date to include the date such as 01-06-2020 23:59, but I would prefer if I just do the query based on dates without time. In SQL it is possible as per the following example: Best way to compare dates without time in SQL Server
I am not sure whether you can somehow do something similar in Acumatica.