New to Kendo UI for Vue? Start a free 30-day trial
Integration with JSON
Updated on Oct 30, 2025
Generally, the data which is received from the server is serialized in a JSON format.
The date object in JSON is an ISO8601-formatted date string. For more details, refer to the documentation on the JSON.stringify method. On the other hand, the TimePicker works only with JavaScript Date instances.
To bind the TimePicker to dates which are serialized as strings, handle the parsing process:
- Convert the JSON date strings into valid JavaScript Dateobjects by using theIntlServiceor any other suitableDateparser.
- Define the valueproperty of the component.
- Provide an onChangeevent handler to the TimePicker to get the selectedDatevalue.
The following example demonstrates how to set the value of the TimePicker.
Change Theme
Theme
Loading ...