Re: IsDate()
- From: Martin Dobson <martin@xxxxxxxxxxxxxx>
- Date: Thu, 14 Jun 2007 12:00:48 +0100
On Wed, 13 Jun 2007 21:57:31 -0500, Bart Perrier wrote:
I am working with an HTA, having the user enter a numeric value for the
MONTH / DAY / YEAR. I then concatenate them into the format shown and then
do an IsDate(). If the user enters something like 14 / 2 / 2007, IsDate
returns True; it is reading the date as DAY / MONTH / YEAR.
Any idea how I can get around this without using DropDowns?
Thanks.
Bart
Hi Bart,
If your using a HTA the regional settings of the client using the HTA are
going to apply, if you use DateSerial to concatenate the values into a
valid date then use IsDate() this should work.
Usage:[return] Date = DateSerial([year] integer, [month] integer, [day]
integer)
Because you decide what is the year the month and the day, any regional
settings will not screw up your conversion.
Hope this was helpful.
--
Martin Dobson
Furness Internet Limited (http://www.furness.net)
VBCity Leader (http://www.vbcity.com/forums)
.
- Follow-Ups:
- Re: IsDate()
- From: Bart Perrier
- Re: IsDate()
- References:
- IsDate()
- From: Bart Perrier
- IsDate()
- Prev by Date: Install MSI
- Next by Date: Re: WshShell.Run and long command
- Previous by thread: IsDate()
- Next by thread: Re: IsDate()
- Index(es):
Relevant Pages
|