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
175
How to format DateTime as 'M/d/yyyy' ?
posted

In .net's native DateTimePicker, you could format the date time as M/d/yyyy so for example '2008,January 1st' could be formated as 1/1/2008.

But in  UltraDateTimeEditor, it seems that we could only assgin a MaskInput in which the day and month must be 'dd' or 'mm', so the day and month will always be showed as 2 digits. '2008,January 1st' will be formated as 01/01/2008.

 Is there any workaround to let the display text show 1 digit for day and month?

 

 

  • 469350
    Verified Answer
    Offline posted

    I don't think this is possible with DateTimeEditor. You might want to look at the UltraCalendarCombo control, though. This control is a much nicer editor for dates and doesn't use masks, so it's more flexible. I think it can handle word entry.