Bind to JSON data
Generally, the data which is received from the server is serialized in a JSON format.
date object in JSON is an ISO8601-formatted date string. For more details, refer to the documentation on the
To bind the DatePicker to dates which are serialized as strings, handle the parsing process:
Dateobjects by using the
IntlServiceor any other suitable
- Define the
valueproperty of the component.
- Provide an
onChangeevent handler to the DatePicker to get the selected
The following example demonstrates how to set the value of the DatePicker.