Leading zero for RadMaskedEditBox DateTime formatting

2 posts, 0 answers
  1. Eric Clemons
    Eric Clemons avatar
    1 posts
    Member since:
    Apr 2009

    Posted 21 Apr 2010 Link to this post

    Our client wants to input dates as MM-dd-yyyy with leading zeros.

    I have the RadMaskedEditBox set as:
    Mask = MM-dd-yyyy
    MaskType = DateTime

    What setting is missing to force and keep the leading zeros?    (specifically for the month and day)

    With the current settings the following behavior occurs as follows:
        1. radMaskedEditBox.Value = someDateTimeObject; results in the leading zero of the month does not show
        2. Typing 0 causes the month mask to collapse to one character. The client expects to see 00 all the time as the 
            double 'M' explicity specifies requiring two digits.
        3. After typing the second digit the zero is not shown.  For example, typing '04' only shows '4'.
        4. The mask sticks on the month, never advancing to the day.  For example, typing '04022009' only results in '9-00-0000'
            as the last digit typed was a nine.
  2. Deyan
    Deyan avatar
    2147 posts

    Posted 27 Apr 2010 Link to this post

    Hello Eric Clemons,

    We have addressed similar issues in our latest release. Could you please download and install our latest version and see whether it works for you?

    Thanks for your time.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top