在保存时用这句话"=StrToDate(datetostr(Date));即可

解决方案 »

  1.   

    formatdatetime('yyyy-mm-dd',date)
    这样就可以了
      

  2.   

    设计数据库阶段将日期格式设置为:长日期
    输入掩码设置为:9999-99-99;0;
    然后就完全可以使用了!
    只不过要注意的是:在转换时用AsDateTime,即:Edit1.Text:=Table1.FieldByName('日期字段').AsDateTime;搞定!
      

  3.   

    在保存时间时作这样的处理:
       Date:TDateTime;
       iYear,iMonth,iDay:word;
    begin
       DeCodeDate(Date,iYear,iMonth,iDay);
       Date:=EnCodeDate(iYear,iMonth,iDay);
       //再保存Date日期.
    end;
    OK?