RadControls for ASP .NET AJAX version |
2008.1.415 and later
|
.NET version |
2.0 and later
|
Visual Studio version |
2005 and later
|
Programming language |
Javascript
|
Browser support |
all browsers supported by RadControls for ASP .NET AJAX
|
PROJECT DESCRIPTION
In some cases, it may be more convenient and faster to specify a "relative" date, instead of choosing one from a RadDatePicker or typing a valid date string manually. For example if today is August 31 and you type "-3" or "+5" in the DateInput textbox, you may want the control to treat this as "three days ago" or "after five days", i.e. August 28 or September 5. Here is how to do this:
Markup
Javascript
The IF statement can be modified in order to suit any particular scenario.