hi morten
               try out this following code hope this will work:
   
  static void validatedate(Args _args)
{
     int numbr1,numbr2;
     str datevar;
     date date1;
     datevar = "31.4.2007";
 
     date1 = str2date(datevar,123);
     print date1;
     numbr1 = str2int(substr(datevar,0,2));
     numbr2 = dayofmth(date1);
     if (numbr1 > numbr2)
        print "invalid date";
}

mlefoa <[EMAIL PROTECTED]> wrote:
          Many thanks for all answers to my question.

However, how can I validate a date so that, e.g. 31.4.2007, would be
rejected as an illegal date? I excepted str2date to do that.

Regards,
Morten Lehrmann



                         

       
---------------------------------
 Why delete messages? Unlimited storage is just a click away.

[Non-text portions of this message have been removed]

Reply via email to