View Single Post
Old April 19th, 2006, 03:20 AM
johnckeogh johnckeogh is offline
Registered User
Join Date: Apr 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Isdate validation problem


I am maintaining an old asp site that we developed a few years ago and we have just noticed a problem with some of the error checking. We have a form that has about 12 different text fields where the user enters dates. When the form is submitted these are checked using the isdate function in an asp form and this picks up any obvious errors. We are based in the UK and we have found that users can enter 31/01/2006 fine but also 01/31/2006 (U.S. format) that we do not want to be accepted. I have had a look around and found that this is a fault of isdate and that it recognises both dates as correct which we do not want. Does anybody have any date checking code that we can use that will only accept U.K dates? Note that we need to do the error checking in asp and do not want to use javascript.