This is a migrated thread and some comments may be shown as answers.

RadMaskedDateTimeInput - Day & Month and localization

1 Answer 59 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Christian DUCOURTIEUX
Top achievements
Rank 1
Christian DUCOURTIEUX asked on 22 Oct 2011, 12:15 PM
Hi,

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.

Thanks.

Christian

1 Answer, 1 is accepted

Sort by
0
Alex Fidanov
Telerik team
answered on 26 Oct 2011, 02:26 PM
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.

Regards,
Alex Fidanov
the Telerik team

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

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Christian DUCOURTIEUX
Top achievements
Rank 1
Answers by
Alex Fidanov
Telerik team
Share this question
or