Querying the same feature layer published (by different people) to both ArcGIS Enterprise 10.9.1 and ArcGIS Online, I am getting a different kind of response in html format to nearly identical queries. For the Enterprise the result is encoded as an integer (e.g. 1699005600000) using an esriFieldTypeDate field type, but for ArcGIS Online it is decoded to a human readable date format (e.g. 11/3/2023 10:00:00 AM).
Users of our service would prefer the latter. What would be the best practice? Is there a parameter in the REST API that can be provided in the query that would set the response format? Do I need to provide multiple solutions for them (python, javascript and others)? Should I change how the data is published in Enterprise (perhaps by publishing a database View)?