New to Kendo UI for AngularStart a free 30-day trial

Integration with JSON

Updated on Mar 25, 2026

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 Calendar works only with JavaScript Date instances.

To bind the Calendar 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 input property of the component—the same approach applies to reactive and template-driven forms.
  3. Wire the valueChange output property of the Calendar to get the selected Date value.

JavaScript's Date constructor treats date-only strings (for example, "2025-06-30") as UTC midnight, not as local time. When you convert such a string to local time, users in timezones behind UTC may see the wrong date. To avoid this issue, parse date-only strings using the date component constructor: new Date(year, month - 1, day). For more information, refer to the MDN documentation on creating Date objects.

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

Change Theme
Theme
Loading ...
In this article
Suggested Links
Not finding the help you need?
Contact Support