How to filter oData call using dynamic date?
问题 I'm making an AJAX call using URL as follows. http://somecomputer/Service.svc/Method?$filter=SomeDate gt DateTime'2014-08-24' This works perfectly and and the moment, I generate the string describing the date right before my AJAX call. However, I wonder if it's possible to match the date on dynamic values, such as today or lastyear or what not. I haven't found any documentation of that when googling so probably it's not possible but I still need to check with the wisdom of SO. 回答1: Yes, it is