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
220
Keep UltraDateCombo from auto completing dates
posted

I'm working on an application where the user needs to be able to enter the full 8 digit date 12/12/1902 and 12/12/2002 but I haven't found how to keep the ultraCalendarCombo from auto completing the year after the first 6 digits are entered.  I know there has got to be a way would someone please point me to it.

 

Thanks,

John

Parents
  • 69832
    Offline posted

    I'm not sure if you can suppress that, if I remember correctly it is a function of the DateTime struct's parsing mechanism; they use the System.Globalization.Calendar's TwoDigitYearMax setting, which basically identifies the earliest date that most applications will consider valid.

    You might be able to prevent this by setting the control's Format to somehting that contains "yyyy", so that a four-year representation is required, although I honestly don't know if that is considered when parsing or if it just determines the display.

Reply Children