$filter=(Program eq 'E6' or Program eq 'NON')
and PricingCountry eq 'UK'
and PricingCurrency eq 'GBP'
and CustomerType eq 'USR'
and LicenseAgreementType eq 'CRP'
and StartDate le '2022-04-01T00:00:00.000Z'
and (EndDate eq null or EndDate ge '2022-04-30T00:00:00.000Z')
and (
(PartNumber eq '9TX-00635' and ProgramOffering eq 'ACP' and OfferingLevel eq 'D' and PurchaseUnit eq '1Y' and PurchasePeriod eq 'AAS' and DealDuration eq 60)
or
(PartNumber eq '9TX-00635' and ProgramOffering eq 'ACP' and OfferingLevel eq 'A' and PurchaseUnit eq '1Y' and PurchasePeriod eq 'AAS' and DealDuration eq 60)
)
I have written below code, everything is working except start date and end date as those are in String in Odata and i don't have control.
If i keep in string then >= and <= is not possible and language won't allow.
If i try to parse to DateTime or DateTimeOffset, package is giving error like its not able to parse.
I want to have below odata query.
I have written below code, everything is working except start date and end date as those are in String in Odata and i don't have control.