DateTimePicker怎样取得年月日? var year,month,day:string;begin year:=datetimepicker.year; ... ...end; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 分解喔decodedate(date,year,month,day) DateTimePicker.DateTime:=StrToInt('1992-7-5'); sorry 我看错了 decodedate(date,year,month,day) 来迟咯 FormatDateTime('yyyy',datetimepicker1.datetime);FormatDateTime('mm',datetimepicker1.datetime);FormatDateTime('dd',datetimepicker1.datetime); 做个例子给你:var Year,Month,Day:string;begin DecodeDate(DateTimePicker1.Date,Year,Month,Day); 你的年:=Year; 你的月:=Month; 你的天:=Day;end; spcomm串口通信发送一条收一条的问题 讨论,delphi还有没有前途了,delphi的方向在哪里 如何表示光标所在的行 简单问题d:=a+b; //断点定不住是怎么回事? 低价发行,免费试用,助手医院信息管理系统(中小医院专用),详情请进! 打印问题 日期非法 请求帮忙翻译代码 delphi有没有游标??? 好文章!好文章!还是好文章! 大哥、大嫂,救小弟:用‘select sum(数字字段)’怎么样设定才将值null变为0 如何使用html help workshop?????
decodedate(date,year,month,day)
我看错了
来迟咯
FormatDateTime('mm',datetimepicker1.datetime);
FormatDateTime('dd',datetimepicker1.datetime);
var
Year,Month,Day:string;
begin
DecodeDate(DateTimePicker1.Date,Year,Month,Day);
你的年:=Year;
你的月:=Month;
你的天:=Day;
end;