RadMaskedDateTimeInput - Day & Month and localization

2 posts, 0 answers
  1. Christian DUCOURTIEUX
    Christian DUCOURTIEUX avatar
    8 posts
    Member since:
    Sep 2012

    Posted 22 Oct 2011 Link to this post


    First thanks for your great controls ;)

    I need ro display the day and the month of date a without the year.
    Depending on the culture of the User, i must diplay "dd/mm" or "mm/dd".

    Could that be achieved with the RadMaskedDatTimeInput or shoud i write some code ?

    I have a similar problem of localization with RadMaskedNumericInput.
    I need to display twodigits number with decimal, wich is "." or "," dependending on the cultureof the user.



  2. Alex Fidanov
    Alex Fidanov avatar
    636 posts

    Posted 26 Oct 2011 Link to this post

    Hi Christian Ducourtieux,

    This is possible, however, you would have to do this manually. You can find the date time format strings that you can use as mask here. However, there is no day-month culture specific predefined pattern for this. What I would recommend is to create a mask based on the culture of the masked control.

    Regarding the numeric mask control, it will still use the current culture and get the decimal symbol from it. If you want to have a modified decimal symbol, you can create your own culture and change it from the NumberFormat property of the culture.

    Alex Fidanov
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
Back to Top