Search Tools Links Login

isDate()


1) Validate a date entered in a text box without having to use multiple boxes for day, month, year.
2) Implement a short, mathematical method
3) Provide feedback about incorrect entries

Original Author: Cecil Denney

Inputs

a date in numeric form, day/month/year, one or two digits for day and month. Assume 2 digit years are for 2000.

Assumptions

Makes use of 400 year cycle calendar for leap years.

Returns

Corrected, editted date or "ERROR: " message.

API Declarations

Copyright 2001, The Jesse Tree

Code

<%
'copyright 2001, The Jesse Tree
'This Web page illustrates the use of the date functions
' Developed by Cecil Denney, Automation consultant to
' The Jesse Tree, 2622 Market Street, Galveston, TX 77550
option explicit
dim i, Date1, Date2
%>





Enter Date:

Calculated:


About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 110 times

Categories

ASP/ HTML

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.