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

Formatting input and display with RadDateInput

1 Answer 42 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Tom Renfro
Top achievements
Rank 1
Tom Renfro asked on 25 Aug 2011, 06:12 PM
I'm trying to add a control to a web page that allows the user to enter date values in a variety of ways, hoping the control will display in the correct format.  I currently use a date type in another product that automatically formats the input to the correct value.  Example:  if the user types in 05052005, the control should convert the value to 5/5/2005, conversely if the user enters 05/05/2005, the control should convert to 5/5/2005.

Any ideas or help is welcomed.

1 Answer, 1 is accepted

Sort by
0
Tom Renfro
Top achievements
Rank 1
answered on 25 Aug 2011, 06:19 PM
I found what was wrong.

The property for MinDate was set too high.  I was entering a valid date lower than the default value.

Also, I had DateFormat and DisplayDateFormat set to M/d/yyyy, and when entering a date within the minimum and maximum values, it works beautifully.

Thanks.
Tags
Calendar
Asked by
Tom Renfro
Top achievements
Rank 1
Answers by
Tom Renfro
Top achievements
Rank 1
Share this question
or