How can I check if a string is valid date or not? If it is valid I want to return true else false. String will be like ’01-JUN-2012′
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The following function Checks for (dd MMM yyyy) format. No dash (-) accepted. It may help you or take a close look on regular expression to modify it little..
Working Demo on jsFiddle