473,473 Members | 1,805 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Using the isDate function

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.
Nov 18 '05 #1
2 3406
Jos
John wrote:
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/r.../lcid-all.mspx)
before calling the IsDate function.

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

--

Jos
Nov 18 '05 #2
John,

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

I hope this helps?

Cor

"John" <a@b.com>
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.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Richard Gomez | last post by:
I would like to have a persons age in my database using their date of birth. Can anybody give me some sugestios how i can do this
0
by: vonclausowitz | last post by:
Hi All, I use IsDate() to check a field in Outlook tasks to see if it contains a real date. If IsDate(Task.role) then ... else ... endif
3
by: Mike | last post by:
Hi, Anyone knows what the equivalent of the IsDate function is in C#? Thanks Mike
2
by: Oenone | last post by:
I'm having a couple of problems with the IsDate function in VB.net (.net framework v1.1). Having searched the web and usenet for others having the same problem, I've seen several posts from people...
2
by: z. f. | last post by:
Hi, i see in reflector in inner implementation of the Microsoft.VisualBasic.Information.IsDate function that looks like that: public static bool IsDate(object Expression) { if (Expression !=...
6
by: Peter Smith | last post by:
IsDate("01/01") in Vb.Net is returning TRUE. Is it a bug in the function? What is the other way of checking the same functionality? Is there any other know issue with the date function. ..Net 1.1...
19
by: MDC | last post by:
Why does this return true: IsDate("ISometimesHateProgrammingMarch2005") Is there another way to verify that this is not a date?? Thanks in advance! MDC
1
by: nlulla | last post by:
Hi I am trying to get all rows from a datatable where the first column F1 is a date, as this datatable is created of excel, i only want to deal with rows where the first column is having a date in...
25
smithj14
by: smithj14 | last post by:
I have a form that has an option group (fraReports) which holds a list of reports to print. This part works fine. I select a report name and click print and that report opens. Now I want to add a...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.