OData Azure Search DateTime Format

Working with Azure Search and building filter string in OData, needing to feed current date and time, you can do;

string filter = “filterfield ge ” + DateTime.Now.ToString(“yyyy-MM-dd’T’HH:mm:ss-00:00”); ;

Reference: https://msdn.microsoft.com/en-us/library/azure/dn798921.aspx