I have a fairly large data model that I want to expose using Web API OData using the OData V4 protocol.
The underlying data is stored in a SQL Server 2012 database.
Both the following work with ODATA 4
1 : This is the Latest update I see with .Net 4.7 and Microsoft.Aspnet.ODATA 5.3.1
$filter=DateofTravel lt cast(2018-05-15T00:00:00.00Z,Edm.DateTimeOffset)
2 : This also works , it needs to be in this yyyy-mm-ddThh:mm:ss.ssZ
$filter=DateofTravel lt 2018-02-02T00:00:00.00Z