MaskedDateTimeInput ParseDateTimeValue help

2 posts, 0 answers
  1. Chris
    Chris avatar
    19 posts
    Member since:
    Jul 2011

    Posted 08 Oct 2012 Link to this post

    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!
  2. Pavel R. Pavlov
    Pavel R. Pavlov avatar
    1237 posts

    Posted 11 Oct 2012 Link to this post

    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.

Back to Top