# TimePicker Integration with JSON

Generally, the data which is received from the server is serialized in a [JSON](http://www.json.org/) format.

The date object in JSON is an [ISO8601](https://en.wikipedia.org/wiki/ISO_8601)-formatted date string. For more details, refer to the documentation on the [`JSON.stringify`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) method. On the other hand, the TimePicker works only with JavaScript [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instances.

To bind the TimePicker to dates which are serialized as strings, handle the parsing process:

1. Convert the JSON date strings into valid JavaScript `Date` objects by using the `IntlService` or any other suitable `Date` parser.
2. Define the [`value`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/timepickercomponent#value) input property of the component—the same approach applies to reactive and template-driven forms.
3. Wire the [`valueChange`](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/timepickercomponent#valuechange) output property of the TimePicker to get the selected `Date` value.

The following example demonstrates how to set the value of the TimePicker.

[Demo Source](https://demos.telerik.com/kendo-angular-ui/demos/dateinputs/timepicker/json/source.txt)

## Suggested Links

* [API Reference of the TimePicker](https://www.telerik.com/kendo-angular-ui-develop/components/dateinputs/api/timepickercomponent)
* [Supported Date and Number Formats](https://github.com/telerik/kendo-intl/tree/master/docs)
