Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    What is the date format in AdvancedCriteria? Any example is welcome

    myDS.fetchData({
    _constructor:"AdvancedCriteria",
    operator:"and",
    criteria:[
    {fieldName:'startDate', operator:"greaterThan", value:'2015-10-08 14:05:01 -0700'}
    ]
    }, ...

    The following is the error message:
    java.lang.IllegalArgumentException: Parameter value [2015-10-08 14:05:01 -0700] did not match expected type [java.util.Date (n/a)] occurred.

    #2
    Try "2015-10-08T14:05:01.000-07:00".

    Or set the value in your criteria to a real Date instance and then take a look in the Developer Console RPC tab to see what value is sent in criteria.
    Last edited by Isomorphic; 7 Oct 2015, 22:43.

    Comment


      #3
      I would like to ask how to set the value in my criteria to a real Date instance. Thanks in advance

      Comment


        #4
        With value: new Date()

        Comment

        Working...
        X