Using the isDate function

  • Thread starter Thread starter John
  • Start date Start date
J

John

Hi all,

How do I use the isDate function?

The reason I ask this is because the function returns a false for a date
"13/09/2004" which is correct in "dd/MM/yyyy" format. Is there another
function I can use to validate a simple string in "dd/MM/yyyy" format?

Any help appreciated.

Regards
John.
 
John said:
Hi all,

How do I use the isDate function?

The reason I ask this is because the function returns a false for a
date "13/09/2004" which is correct in "dd/MM/yyyy" format. Is there
another function I can use to validate a simple string in
"dd/MM/yyyy" format?

Any help appreciated.

Regards
John.

Probably, your server is using the wrong locale ID.

Try setting Session.LCID=1078 or whatever your LCID is
(see http://www.microsoft.com/globaldev/reference/lcid-all.mspx)
before calling the IsDate function.

You can also use the Page directive:
<%@Page LCID="1078" Language="VB" %>
 
John,

Probably you use a server wich culture is set to "en-US"

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top