Custom validator message when AJAX calendarextender in custom date format "ddd dd MMM yyyy"

Posted on 2008-11-10
Last Modified: 2012-06-21
I have a IsDate() function in my custom validator. Everything works fine, though when picking a date with the AJAX calendarextender formatted "ddd dd MMM yyyy" the custom validator fires an errormessage. Is there a workaround?
Question by:PdeLorme
    LVL 8

    Expert Comment

    As isdate() is not a inbuilt function - please post the code of your custom validator isdate() function. I think you have to modify the isdate() function

    Author Comment

    Thanks for your help. I use the dd MMM yyyy format which is recognised as a valid date format by the IsDate() function.

    Author Comment

    Found a workable solution in the meantime. Thanks
    LVL 8

    Accepted Solution

    IsDate() is not a inbuilt function in javascript, but it is a function of vbscript. I got confused what you are using for validation vbscript or javascript.

    Anyway congratulation on finding your solution.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
    Accessibility and Usability are two concepts that seem to be closely related.  But, too many people seem to have a distorted perception of them. During last five years, those two words have come to the day-to-day work of almost every web develope…
    Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now