Asp net validating date input

31 Jan

To see what each of the format identifiers means, please consult the relevant MSDN documentation.

If you want support for another format string, please lodge an issue or send us a pull request.

Thanks Sriniavs Hi Srinivas , Validating date in javascript is not a straightforward job specially when you have a different date format than compared with that of javascript .

plz check out the following thread which deal with the same scenario of date validation using javascript :- have a similar problem.

Now you can ask questions directly to me on my new site ASPForums.

Back when we had only ASP, developers who had to write webpages for forms knew that the most tedious part is writing code to validate the user input.

I also received one comment from my reader that it is not sufficient to validate only format. This website communicates about my work, learning and experience.

Since Q2 2012 there are some modifications for Rad Input validation.

The main idea is to render only the input element all the time, and remove the span element and the excessive inputs.

So I thought why not writing a post which validates the date as well. Well, I have created a function which takes date value as input and returns true/false based on date validation logic. I believe life is short, and it is for loving, sharing, learning and connecting.

Below is the j Query function which validates the date.