Good afternoon,
I have a Date field in a hosted Feature layer and I do not know how to print it correctly. It returns an integer, I would like to see the date.
# Access the first layer in the feature layer item (if it has multiple layers)
feature_layer = feature_layer_item.layers[0]
feature_layer
# Query the layer for a specific record
# For example, to find a record with OBJECTID = 1
query = feature_layer.query(where="OBJECTID = 1")
record = query.features[0]
print(record.attributes)
# Date field
lastUpdateAGOL = record.attributes["LAST_UPDAT"]
lastUpdate_dateonly = lastUpdateAGOL.date() ====> Returns an error