asp.net - Stopping the user from entering or selecting future date -


Will any user have any ideas about preventing future dates from being selected or recorded? The validator of Regular Expression of AJX was only confirming the date in the DD / MM / Y YYA format.

Maybe there are so many options, it depends on your app. I think that you allow the user to type anything, so you have to make sure that this is a valid date before. If you have a valid date, compare it to the current date, for example you can blog it.

Comments