The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Is there a method to validate seperate field entries (month, day, year) in the DateTimePickerAdv during entry? I am using MM/dd/yyyy custom format.
Also, I am having problems with the DigitYear property. I have subclassed the DateTimePickerAdv to allow for an to add today's date over a null. I have set Digityear to '2000' but it is not functioning. I first suspected it is because I plug in today's date programmatically. If the date defaults to 08/08/2007 and the user types in 01/02/01, the control plugs the 01 at the end of the year digits and pushes 20 to the left off the control leaving '0701' as the year. When the year is selected in the control it is selected (highlighted), but does not act like selected text normally operates by being removed when the first character is hit.
Thinking it was a challenge with my subclass, I created a form, dropped on a DateTimePickerAdv control, set format to custom, the format to MM/dd/yyyy and digit year to 2000 and it repeated the same problem. I then changed format from custom to short thinking custom format was the problem and it again repeated the same problem. I am current on my updates using version 5.
RRRamya R Syncfusion Team August 10, 2007 12:50 PM UTC
Hi Tom,
Thank you for your interest in Syncfusion Products.
In the DateTimePickerAdv, when the date displayed is in the "MM/dd/yyyy" format and when the user tries to change the year of the date(displayed date - 08/08/2007) by typing 01 instead of 2001 then the digits already present move to the left and appears as 0701. A valid year appears when we have finished typing and the focus of the cursor is changed(either by moving the cursor using Arrow Keys or by clicking on the DateTimePickerAdv). After the change of focus, the year appears as 2701. This is because as the year is not typed completely(i.e since 0701 is not a valid value) the DateTimePickerAdv uses the digit year and takes into account the digits after the first zero in the year typed, calculates and displays the year as 2701.
Could you please provide some more information with regard to your requirement, if I have misunderstood your requirement?