Skip to main content
Solved

How to display all days between two dates in a Generic Inquiry?

  • December 10, 2025
  • 2 replies
  • 25 views

Forum|alt.badge.img+2

Is it possible in a Generic Inquiry to generate a result that lists every calendar day between two dates?
For example, I have StartDate and EndDate, and I need the GI to show each date within that range, even if there are no records for those days in the underlying table.

Best answer by lauraj46

Hi ​@bihalivan15 ,

You can use the DateInfo DAC.  It contains a record for every date from 1/1/1970 to 6/6/2079.  

Hope this helps!

Laura

2 replies

nickcerri32
Jr Varsity III
Forum|alt.badge.img+2
  • Jr Varsity III
  • December 10, 2025

@bihalivan15 - The GI will only return lines where data exists.  For example, if there’s a row that references July 18th, and the next row references July 21st, there won’t be any rows for July 19th and July 20th. 

 

If you’re savvy with Excel, you could do an OData feed and pull data into an Excel sheet and aggregate it by date in a separate table.


lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • Answer
  • December 10, 2025

Hi ​@bihalivan15 ,

You can use the DateInfo DAC.  It contains a record for every date from 1/1/1970 to 6/6/2079.  

Hope this helps!

Laura