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

.net-json-formatted date before 1.1.1970

1 Answer 194 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Elko
Top achievements
Rank 1
Elko asked on 26 Apr 2013, 11:11 AM
Hi there!

I´m using some MVC-actions to retrieve my data. The dates within my objects are serialized like that:
MyDate:/Date(1325372400000)/

Setting the value to a DatePicker works fine if the value/number is > 0. (a date after 1.1.1970...).
If the number is < 0 it does not work.

But
new Date(-50000)
works also fine (and results in xx.xx.1969).

That´s how I set the value using javascript:
_jquery.data('kendoDatePicker').value(_value);

I found a different thread having problems with the value. It was solved by changing the min value. But that has no effect.

Is it officially supported using the .net-formatted-date-json as value?
Or is there a bug?
What could be the problem?

My environment:
- kendoUI-version: 2013.1.319.340
- Windows7
- IE10
- jQuery 1.9.1

Best Regards!

1 Answer, 1 is accepted

Sort by
0
Elko
Top achievements
Rank 1
answered on 26 Apr 2013, 12:23 PM
I tried setting min and max again with extrem values... then it works.

thanks.
Tags
Date/Time Pickers
Asked by
Elko
Top achievements
Rank 1
Answers by
Elko
Top achievements
Rank 1
Share this question
or