View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
Checking dates can be done simply as follows :
m.birthdate       = ctod(Request.Form('birthdate'))
  m.startdate       = ctod(Request.Form('startdate'))
* Check the validity of the data
  if empty(m.birthdate)
   error_txt = M.error_txt + '<LI><I>Birthdate is not correct (dd/mm/yyyy)</I><BR>'
  endif
  if empty(m.startdate)
   error_txt = M.error_txt + '<LI><I>Startdate is not correct (dd/mm/yyyy)</I><BR>'
  endif
the function CTOD() will return empty with an invalid date.

Cas

Sent by Alan Harris-Reid on 11/16/2001 12:30:45 PM:
Curtis, many thanks for the recommendation.  I'll check it out.

Regards,
Alan