We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback


Thread ID:





67103 Aug 8,2007 08:21 PM UTC Aug 10,2007 12:50 PM UTC WinForms 1
Tags: Tools
Tom Affholter
Asked On August 8, 2007 08:21 PM UTC

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.

Any ideas?



Ramya R [Syncfusion]
Replied On 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?

Also please let me know if you have any queries.

Thanks & Regards,


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon