var
  year,month,day:string;
begin
  year:=datetimepicker.year;
  ...
  ...
end;

解决方案 »

  1.   

    分解喔
    decodedate(date,year,month,day) 
      

  2.   

    DateTimePicker.DateTime:=StrToInt('1992-7-5');
      

  3.   

    sorry 
      我看错了
      

  4.   

    decodedate(date,year,month,day) 
    来迟咯
      

  5.   

    FormatDateTime('yyyy',datetimepicker1.datetime);
    FormatDateTime('mm',datetimepicker1.datetime);
    FormatDateTime('dd',datetimepicker1.datetime);
      

  6.   

    做个例子给你:
    var
      Year,Month,Day:string;
    begin
      DecodeDate(DateTimePicker1.Date,Year,Month,Day);
      你的年:=Year;
      你的月:=Month;
      你的天:=Day;
    end;