Hello,
In our application, we offer the users possibility to customize settings and save them inside MongoDB, and some of those settings are of DateTime/Time type.
The problem is, that when the user sets a time inside the DateTime Picker (let's say 17 April 2020, 23:59), the value saved inside MongoDB is the serialized one, 2020-04-17T20:59:00.000Z (I write the ngModel in console and I get Fri Apr 17 2020 23:59:00 GMT+0300 (Eastern European Summer Time), so the serialization is correct considering the time zone, but we need to save in database the exact date the users sets inside the DateTimePicker.
console.log(this.dateModel, JSON.stringify(this.dateModel)) writes
Fri Apr 17 2020 00:00:00 GMT+0300 (Eastern European Summer Time)
'"2020-04-16T21:00:00.000Z"'
What can be done so the DateTimePicker shows the date with the same time as when it is serialized?
PS. We have same functionality in an older application made with AngularJS, but there is no problem because the Date Picker for jQuery UI accepts strings as ng-model.
Thanks,
Iuliana
Hi,
With Kendo Jquery i could format like seeing in image, but in TimePicker i could not?
How could i have same view ?
Regards
Hi,
I was wondering if it is possible to default the AM/PM designator programmatically, without having to set an actual time value to the time picker?
The min property does work, however it does not seem to synchronise with the AM/PM designator on the actual input field.
For example, if I've set the min to be 1:00PM, then the list actually does not have the AM available - which is correct. However, the input field still has "hh:mm am" displaying.
I suppose one other way could be to change the dayPeriod placeholder text from AM to PM, if that is at all possible using the currently existing API.
I am using the time picker to enter times. I am in the UK and currently all times are UTC (GMT is currently UTC).
I save my values to the database and somehow Kendo has managed to subtract an hour from the saved value.
It's no problem when I bring back the values to display in the time picker, it somehow adds an hour to display the correct time.
I am working with the abp framework which has standard UTC conversion so all my values in the database are held as UTC.
But Kendo somehow has managed to find a time format which doesn't exist making it very difficult to work with.
I would post some code to further demonstrate but the option for "Formatting options" at the top of this text box simply switches the value to "Hide formatting options".
Can someone tell me what's going on?