I have a featurelayer with a field with "type: esriFieldTypeDate". I have a form on a page using the standard HTML5 date input type. (it uses the browser's built in datepicker) The format that this returns is in this format: '2014-04-29'. When I try to send this in a query, I get an error: "Unable to perform query. Please check your parameters."
What type of date format should I send in a query/querytask to be able to select dates before/after a chosen date?
I've tried using a javascript new Date(). I've tried sending it as 'YYYY-MM-DD', but nothing else.