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

RadDatePicker Force 4-digit year entry?

1 Answer 85 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Richard Pense
Top achievements
Rank 1
Richard Pense asked on 10 Jul 2012, 03:59 PM
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.
Thanks,
Rick

1 Answer, 1 is accepted

Sort by
0
Lancelot
Top achievements
Rank 1
answered on 10 Jul 2012, 10:28 PM
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,
Lancelot
Tags
DatePicker
Asked by
Richard Pense
Top achievements
Rank 1
Answers by
Lancelot
Top achievements
Rank 1
Share this question
or