I have two JavaScript Date
objects. I need to do an OData query between these two Date
objects. The information I'm querying has a field called createDate
which is a DateTimeOffset
. From my understanding, I can do something like this:
entities?filter=((createDate ge [Date1]) and (createDate le [Date2]))
My question is:
- What format is a DateTimeOffset?
- How do I convert a JavaScript Date object to DateTimeOffset format?
Thank you!