Hi Steve ,
I don't suppose there is an one-step method to achieve this, but you can
take a look FormatDateTime, CDate and IsDate functions. They might help you
figure out a way to achieve this.
Also, here is a link discussing Time and Date Validation. Though it is in
Javascript, but it may give you some clues if you want to have more
controls on the validating process.
http://www.merlyn.demon.co.uk/js-date4.htm#TDVal
Regards,
Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Quote:
>Newsgroups: microsoft.public.scripting.
VBScript >Subject: code reuse
>Lines: 8
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>X-Abuse-Info: Please be sure to forward a copy of ALL headers
>X-Abuse-Info: Otherwise we will be unable to process your complaint
properly.
>NNTP-Posting-Date: Thu, 08 May 2003 15:26:43 EDT
>Date: Thu, 8 May 2003 15:37:20 -0400
>Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
n
e.de!newsfeed.icl.net!newsfeed.fjserv.net!c03.atl99!news.webusenet.com!pc01.
webusenet.com!fe04.atl2.webusenet.com.POSTED!not-for-mail
Quote:
>Xref: cpmsftngxa06.phx.gbl microsoft.public.scripting.vbscript:128780
>X-Tomcat-NG: microsoft.public.scripting.vbscript
>I have multiple dates on a web page. I have a script that I use to
validate
>and insert "/" or whatever. I currently have used the InputBox_onBlur()
and
>then inserted the code. is there a way to just have a Validate(), pass the
>modifed date back or insert it into the field?
>thanks