Last Updated: 01 Mar 2024 12:26 by ADMIN
Mark Long
Created on: 01 Mar 2024 12:23
Category: DateTimePicker
Type: Bug Report
RadDateTimePicker: Changing the date (2024 Feb 29) in Leap year throws an exception

The selected date is 2024 Feb 29. A custom date format is applied to the control:

this.radDateTimePicker1.Format = DateTimePickerFormat.Custom;
this.radDateTimePicker1.CustomFormat = "yyyy";

When trying to change the date, an ArgumentOutOfRangeException exception is thrown.




1 comment
Dinko | Tech Support Engineer
Posted on: 01 Mar 2024 12:26

Hello Mark,

Thank you for reporting this.

As a workaround, you can use the Free Form Date Time parsing mechanism.

Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.