.NET 6 introduced DateOnly and TimeOnly types, but none of the relevant date/time controls support these types.
There is already a feature request to support DateOnly in DatePicker; this feature request is about adding support for TimeOnly to TimePicker.
The issue is reproducible when the TimePicker's dates configuration is set and its min() API method is called. Afterwards, if the user select a time, the component shows the wrong time (2h earlier) as selected.
The TimePicker shows a selected value that is 2h earlier than the actual time the user has selected.
The time the user selects is shown as selected value.
### Bug report
When the dateInput option is enabled and the format contains the "ddd" format specifier, the DateTimePicker does not display the date format correctly. Also, when a date is selected, the formatting contains "undefined".
### Reproduction of the problem
1. Define a DateTimePicker with enabled "dateInput" and format equals to "ddd dd/MM/yyyy HH:mm".
2. The format is not correct. When you select a date it is not formatted correctly.
The issue occurs when using the DatePicker, as well.
The last working version is 2023.1.425.
Also, when the "dateInput" is disabled, the date format is displayed as expected.
A Dojo sample for reproduction: https://dojo.telerik.com/oxipADUL
### Expected/desired behavior
The date format must be "day of the week day/month/year hours:minutes" (for example, "Wed 24/01/2024 01:00").
### Environment
* **Kendo UI version: 2023.3.1114
* **jQuery version: 3.7.0
* **Browser: [all]
The AM/PM mask of the DataTimePicker is editable.
The behavior might be related to the introduction of the common DateInput package in the DatePickers.
The AM mask gets deleted and is replaced by the default AM/PM
The AM mask should be non-editable as it isn't part of the value of the Widget.
When clicking on the start date input without changing the default date, the drilldown menu closes when selecting the current year. When clicking the date input again, the drilldown menu correctly shows the months of the selected year. The expected behaviour would be to change to the month selection without closing
See this REPL for reference.
The translations of the Time- and DateTimePickers are missing from the kendo.messages.en-US.js file although the Creating New Localization Files sections of the docs states that it has all messages and should serve as template for contributors.
The DatePicker TagHelper does not expose the disableDates configuration option.
When using the DatePicker TagHelper it is not possible to set the disableDates configuration.
The disableDates configuration should be configurable similar to the HTML Helpers.
Hi,
I'm having an issue with the TimePickerFor control, it doesn't show the time, only a strange format.
When I declare the control:
@(Html.Kendo().TimePickerFor(m => m.ShiftStartDt)
.Deferred()
)
it only shows a forma of "h:mm tt" instead of the time from the model
When I change the control to a datetime picker, it works fine but I don't want to see the date, only the time.
This works:
@(Html.Kendo().DateTimePickerFor(m => m.ShiftStartDt)
.Deferred()
)
I have debugged the model and the data is correct,
[Display(Name = "Start Time")]
public DateTime ShiftStartDt { get; set; }
I have even tried changing the model to TimeSpan but it didn't help
I tried setting the format also on the control and using jquery:
$("#ShiftStartDt").kendoTimePicker({
format: "HH:mm"
});
still always shows "h:mm tt" always, no matter what I do
Regards
Raff
using DateTimePicker new features .ComponentType("modern") in french localization, the new feature are show in english and not in french.