In testing out my filtering using Date fields (you previously addressed an issue with parsing/formatting of DateTime for me http://forums.smartclient.com/showthread.php?t=30218) I found one case where the stored value is not adhering to my format. When I use the between operator it is storing the dates in the ISO 8601 format rather than my defined format.
Is this because the Between is wanting to set the start of day and end of day of the two dates respectively? Is it required to have those times included since this is just a Date field or should the values still be formatted using my specified formatter (in this case yyyy-MM-dd)?
Code:
"criteria":[ { "fieldName":"tdate", "operator":"equals", "value":"2014-10-13" }, { "operator":"iBetweenInclusive", "fieldName":"tdate", "start":"2014-12-01T05:00:00.000", "end":"2015-01-01T04:59:59.999" }, { "fieldName":"tdate", "operator":"notEqual", "value":"2014-05-31" }, { "fieldName":"tdate", "operator":"lessThan", "value":"2016-05-01" }, { "fieldName":"tdate", "operator":"lessOrEqual", "value":"2015-06-04" }, { "fieldName":"tdate", "operator":"greaterThan", "value":"2014-05-01" }, { "fieldName":"tdate", "operator":"greaterOrEqual", "value":"2014-05-13" }, { "operator":"isNull", "fieldName":"tdate" }, { "operator":"notNull", "fieldName":"tdate" } ]
Comment