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

MaskedDateTimeInput ParseDateTimeValue help

1 Answer 33 Views
MaskedInput (Numeric, DateTime, Text, Currency)
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 08 Oct 2012, 07:01 PM
What I'm trying to do is allow a user to enter a date as for example 100812 and convert that to both display, and save, into 10/08/2012 in SL4

Am I on the right track with DateTimeInput & ParseDateTimeValue? I seem to be having a heck of a time figuring this out. Might there be any examples or snippets to help illustrate a possible answer?  Thanks!

1 Answer, 1 is accepted

Sort by
0
Pavel R. Pavlov
Telerik team
answered on 11 Oct 2012, 03:17 PM
Hi Chris,

Let me go straight to your issue.
RadMaskedDateTimeInput is designed to handle users` date-time input. The text which you see when you type inside the control, is controlled by the Mask property. On the other hand, the text which you see when the focus is lost is controlled by the FormatString property. By setting different values to these properties your issue can be solved. Keep in mind that your data display format depends on your region and language settings.

Please take a look at the attached project and see if it works for you.

Kind regards,
Pavel R. Pavlov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
MaskedInput (Numeric, DateTime, Text, Currency)
Asked by
Chris
Top achievements
Rank 1
Answers by
Pavel R. Pavlov
Telerik team
Share this question
or