1.日符串转变成日期的函数是什么?
2.我在用dbexpress面板中的SQLconnection.连接数据库.己经连接起.但在用SQLdateset时根本不能找到表.是不是w2k的问题.

解决方案 »

  1.   

    1.strtodate()
    2.sqldataset的connection应指向你连接起数据库的那个sqlConneciton
      

  2.   

    strToDate();
    楼上说的已经没有什么好说的啦
      

  3.   

    1  StrToDatetime('2002-01-03 12:23')2  没用过,你连的是什么数据库
      

  4.   

    sqldateset的SQLconnection己经设置.
    我用的数据库是SQL2000.
      

  5.   

    function EncodeDate
    procedure TForm1.Button1Click(Sender: TObject);var
      MyDate: TDateTime;
    begin
      MyDate := EncodeDate(StrToInt(Edit1.Text), StrToInt(Edit2.Text), StrToInt(Edit3.Text));
      Label1.Caption := DateToStr(MyDate);
    end;
      

  6.   

    ii:=strtodate(edit6.text);
    adotable1.fieldbyname('日期').astring:=ii;
    怎么改一下把ii增加到数据库里
      

  7.   

    try
      ii:=strtodate(edit6.text);
      adotable1.fieldbyname('日期').value=ii;
    except
      showmessage('edit6.text不是有效日期');
    end;
      

  8.   

    sqldateset的SQLconnection己经设置.
    我用的数据库是SQL2000.用SQL2000的话我建议用ADO面板上的控件.