This example demonstrates how you can restrict the date that a user can type in the input field by implementing the ParseDateTimeValue event.
The example is available for Silverlight and WPF.