Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    Yes, dates are tricky, have a read of desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/… when querying a date field in a shapefile preceed the literal date string with date, for example "Datefield" = date 'yyyy-mm-dd' if that doesn't sort it out populate a field of type long integer with int(YYYYmmdd) (python syntax), you should be able to query a range properly with this numeric representation of date. Commented Jun 15, 2023 at 1:09
  • 5
    Shapefile doesn't even support time in dates. dBase does define (amazingly, in the pre-Y2K era) dates as YYYYMMDD. I'd recommend using ISO formatting (date 'YYYY-MM-DD') Commented Jun 15, 2023 at 3:12