This is a migrated thread and some comments may be shown as answers.

Dapicker intial value number (TimeStamp)

2 Answers 330 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Jhony
Top achievements
Rank 1
Jhony asked on 21 Oct 2016, 12:36 PM

Hello,

how i do to set kendo ui date picker with number value (timeStamp) for example, k-ng-model="1477051763928".

 

it returns an error: TypeError: e.indexOf is not a function
    at ve.parseDate (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:9:18925)
    at init._update (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:22:10140)
    at init.value (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:22:8916)
    at Object.<anonymous> (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:66:1007)
    at init.n.(anonymous function) (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:65:29859)
    at Object.d [as fn] (http://127.0.0.1:8081/js/libs/telerik.kendoui/js/kendo.all.min.js:65:26937)
    at n.$digest (http://127.0.0.1:8081/js/libs/angular/angular.min.js:124:114)
    at n.$apply (http://127.0.0.1:8081/js/libs/angular/angular.min.js:127:12)
    at l (http://127.0.0.1:8081/js/libs/angular/angular.min.js:81:195)
    at F (http://127.0.0.1:8081/js/libs/angular/angular.min.js:85:314)

 

Please, answer asap.

2 Answers, 1 is accepted

Sort by
0
Patrick | Technical Support Engineer, Senior
Telerik team
answered on 21 Oct 2016, 04:03 PM
Hi Jhony,

In order to set the Kendo DatePicker using a TimeStamp, you will need to convert the TimeStamp to a Date.  Please take a look at the following Kendo UI Dojo by Progress which shows one approach.

Hope this helps!

Regards,
Patrick
Telerik by Progress
 
Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
 
0
Jhony
Top achievements
Rank 1
answered on 22 Nov 2016, 08:09 PM

So I have to deal in this case, thank you!

Tags
Date/Time Pickers
Asked by
Jhony
Top achievements
Rank 1
Answers by
Patrick | Technical Support Engineer, Senior
Telerik team
Jhony
Top achievements
Rank 1
Share this question
or