RadDatePicker Force 4-digit year entry?

2 posts, 0 answers
  1. Richard Pense
    Richard Pense avatar
    12 posts
    Member since:
    Apr 2009

    Posted 10 Jul 2012 Link to this post

    In the RadDatePicker control for Silverlight, is there any way to force the user to enter a 4 digit year.
    I am using the control for a birthdate field.  The century defaults to the current century, if not entered.
    Also, the users don't like the popup starting at the day level, is there a way to start at decade, then drop, down, down to year, month, and day to select a full date.
  2. Lancelot
    Lancelot avatar
    251 posts
    Member since:
    Jul 2012

    Posted 10 Jul 2012 Link to this post

    Hi Richard,

    You can restrict the RadDateTimePicker's  selection by using SelectableDateStart and SelectableDateEnd. You can also programmatically select the current date. This would come in handy to pre-select something for the user. You have the properties SelectedDate, SelectedTime and SelectedValue to use.

    Go to this link to learn how to implement these features.

    Good Luck,
  3. DevCraft R3 2016 release webinar banner
Back to Top