Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
UltraDateTimeEditor MaxDate
posted

In our system we need to allow 99/99/9999 as a VALID date. In the UltraDateTImeEditor, invalid date entry is simply cleared and reverted back to original date or a blank. Is there an event that can be overridden to allow 99/99/9999 to be entered? Appreciate any feedback.

 

 

  • 37774
    posted

    The UltraDateTimeEditor cannot support this large of a date, mainly because the .NET MonthCalendar does not support this value.  More importantly, you cannot parse "99/99/9999" into a DateTime object as you will get a FormatException.  You might want to look into using an UltraMaskedEdit to handle your editing.  If you choose to go this route, you could add a DropDownEditorButton to the ButtonsRight collection of the control and show a MonthCalendar yourself, handling the conversion between dates to show between the masked editor and the calendar.

    -Matt