if strtodatedef(edit1.text,0)=0 then
   begin
     showmessage('日期非法');
     exit;
   end;当edit内输入的是20110101时 却返回日期非法 难道 strtodatedef函数不认8位数字日期格式?如果这个函数不行 那如何判断edit框中的输入的8位数字(yymmdd) 是不是正确的日期?