AnsweredAssumed Answered

Querying a date field on a feature layer?

Question asked by karen_firstname on Apr 2, 2019
Latest reply on Apr 4, 2019 by EPolle_TensingInternational



I'm using the Python API to query a feature layer on AGOL, and I'm having issues querying on date fields. I just want to query one feature layer where the date field is after 2019/03/26. I've tried almost every date format possible with no luck - any help would be appreciated!


Here's what I have so far, written in jupyter lab:


from arcgis.gis import GIS

item = gis.content.get('itemid')

FL = item.layers[0]

fset = FL.query(where = 'CreationDate > 2019/03/26')