laptop and a wrench

Bug

Unable to create features in FeatureLayer when adding an attribute of type date.

Last Published: May 23, 2019 ArcGIS Runtime SDK
Bug ID Number BUG-000122250
SubmittedMay 8, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS Runtime SDK
Version found100.5
Operating SystemAndroid
Operating System VersionN/A
StatusWill Not Be Addressed

Additional Information

The DATE field is of Type Java Calendar so when editing or creating new features, the Calendar object must be used for the date field: https://developers.arcgis.com/android/latest/api-reference/reference/com/esri/arcgisruntime/data/Field.Type.html#DATE Example: DateFormat sdf= new SimpleDateFormat("MM/dd/yyyy hh:mm:ss a"); String dateInString="05/05/2019 10:20:56 AM"; Date date= (Date) sdf.parse(dateInString); Calendar calendar = Calendar.getInstance(); calendar.setTime(date); attributes.put("DATE",calendar);

Steps to Reproduce

Bug ID: BUG-000122250

Software:

  • ArcGIS Runtime SDK

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options