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
170
Setting MaskInput to yyyy for UltraDateTimeEditor
posted

I have tried setting the MaskInput to yyyy (four-digit year) in the UltraDateTimeEditor, but it does not seem to work.  It does work to set the MaskInput to mm/yyyy, but I want our users just to see/edit the year.  The control correctly displays 2008 for the year, but when I click on it to edit the value it just displays yyyy!



Parents
No Data
Reply
  • 469350
    Offline posted

     I don't think this is supported. You can't have just a year without any other information about the date. If you are only storing a year, why use a DateTimeEditor? Why not just use an UltraNumericEditor with a mask of "nnnn"?

Children