Search by Date Created or Modified

271
0
02-27-2019 04:22 PM
JoeHershman
MVP Regular Contributor

Not sure best place to post, hoping someone might have some insight.  I am trying to do a search on Enterprise content.  I am doing from Runtime but I believe the syntax is the same everywhere.

Based on the Search reference—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers I should be able to do a range search on the date fields (I would love to just do a greater than search, but I can live with a range).

The sample shows:

created: [1259692864000 TO 1260384065000]

I have tried this and also tried with modified

modified:[1546326000000 TO 1551311005864]

Neither of these work.  I have setup the query to basically be from 1970 (=0) to today and nothing is returned.  I have also tried the query using {} instead of [].  Again nothing works.

Does anyone know how you query based on created or modified field?

Thanks

-Joe

Thanks,
-Joe
Tags (1)
0 Kudos
0 Replies