请问怎么获取datetimepicker1的月份 var yy,mm,dd : word;decodedate(datetimepicker1.datatime,yy,mm,dd);mm就是你要的。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 pnmonth:=formatDateTime('mm',DateTimePicker1.DateTime) procedure TForm1.Button2Click(Sender: TObject);var ADate:TDateTime; year,month,day:word;begin ADate:=DateTimePicker1.Date; decodedate(ADate,year,month,day); Label1.Caption:='Now is '+Inttostr(month)+'月份';end; 哎,再来一试,johnsonrao(johnson) 的又可以了,怪,解决了,谢谢! delphi 四舍五入的问题 如何检测程序的主跳转是否已被修改?猛Q、伴水、Ari、哈欠...等牛人,希望进来解释一下 -_-! [求助]请问那里有DELPHI 7.0版的函数说明下啊?? 模糊查询? 请教各位高手一个问题DbGridEh 有没有象VB中LINE一样的控件啊? 创建组件的问题 Delphi是面向对象的程序语言吗? 怎样在状态条里显示进度? 怎样删除文本文件的一行? 加入一行? 给一点DELPHI开发多线程的资料! 怎样创建某个文件的快捷方式?
var
ADate:TDateTime;
year,month,day:word;
begin
ADate:=DateTimePicker1.Date;
decodedate(ADate,year,month,day);
Label1.Caption:='Now is '+Inttostr(month)+'月份';
end;