Date Validation

Results 1 to 3 of 3

Thread: Date Validation

  1. #1
    Pedro Guest

    Default Date Validation

    Does anyone know how to validate a date from a text field in a form. I am tring to insert into the database and it fails due an invalid date has been entered (obviously).<BR><BR>Or does anyone have any Ideas?

  2. #2
    Join Date
    Dec 1969

    Default RE: Date Validation

    You could use the date() function in a hidden object, so the user never has to input a date, nor will they know a date is part of the form.<BR>example.:<BR>&#060;form&#062;<BR>input type=hidden name="when" value="&#060;%=Date( ) %&#062;"&#062;<BR>&#060;input type=text name="text"&#062;<BR>&#060;/form&#062;

  3. #3
    Sathiya Guest

    Default RE: Date Validation

    Their is a VBscript function called IsDate() which validates date. i think this will be helpful in your case.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts