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

ParseDate

methods

Parses as a formatted string as a Date. Also see Date Parsing

Parameters:valueString

The string which should be parsed as Date.

Returns:Date

the parsed date. Returns null if the value cannot be parsed as a valid Date.

<script>
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(kendo.parseDate("2013/3/4 10:00 AM")); // outputs "Mon Mar 04 2013 10:00:00"
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(kendo.parseDate("3/4/2013", "MM/dd/yyyy")); // outputs "Mon Mar 04 2013 00:00:00"
/* The result can be observed in the DevTools(F12) console of the browser. */
  console.log(kendo.parseDate("invalid")); // outputs "null"
</script>
Not finding the help you need?
Contact Support