What is the proper format for a DateTime parameter when using OData against a GI that has parameters.
A simple sample would be getting a list of customers modified since a certain date / time, assuming parameter name is ModDate.


ODataDateText_WithParameters(ModDate=2025-06-01) == 500 - Specified cast is not valid.
ODataDateText_WithParameters(ModDate='2025-06-01') == 404
ODataDateText_WithParameters(ModDate=2025-06-01T00:00:00Z) == 400 (problem with : )
I’ve tried other formatting techniques such as URL encoding the values, encoding the entire parameter string, even asked AI, but that just sent me in circles trying the same things over and over, getting the same results.
The only hack I’ve found is to have the parameter derive it’s type from a text field (such as Account Name), and then pass in the value as a string :

ODataDateText_WithParameters(ModDate='2025-06-01') == works when parameter is mapped to a string field instead of a date field.
I feel like I shouldn’t be doing that as a workaround though. Any thoughts as to what I may be missing when the field is mapped to date field?
Before you suggest it, no, I will not be able to use the $filter parameter. My query looks at too many table’s modified dates.



