How to parse string date format to kendo date

Ashwin picture Ashwin · Feb 24, 2015 · Viewed 8.6k times · Source

I have this date string copied from postgres database - 2000/12/22 03:50:14

I want to format it to something like this using kendo - Friday 22 Dec, 2000 03:50AM.

Fiddle - http://jsfiddle.net/kKhm3/644/

CODE:

var date1 = kendo.parseDate("2000/12/22", "yyyy/MM/dd");

$("#result2").text(kendo.toString(date1, "dddd dd MMM, yyyy hh:mmtt"));

Answer