简单问题 如何分别得到DateTimePicker中的年月日 year:=copy(DateTimePicker,1,4);month:=copy(DateTimePicker,6,2); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 DecodeDate(DateTimePicker.date, Year, Month, Day); decodedate(DateTimePicker1.DateTime,y,m,d); DateStr:= Copy(Datetostr(TimePicker.date), 9, 2); MonthStr:=Copy(Datetostr(TimePicker.date), 6, 2); YearStr:=Copy(Datetostr(TimePicker.date), 3, 2); var year,month,day:word;begin DecodeDate(DateTimePicker.date, Year,Month,Day); Label1.Caption := inttostr(year); Label2.Caption := inttostr(month); Label3.Caption := inttostr(day);end ┬┴┬┌─ ●─┬─ │─┼─┐ ●├─┤○┴┬┴├┬ ┌─┼─ │◎ │ │ ○└┬┘●─┼─││ │ │ ││─┴─┴ ──┼──●│○││ ┴─┼─ │○ ● / │ \ var year,month,day:word;begin DecodeDate(DateTimePicker.date, Year,Month,Day); Label1.Caption := inttostr(year); Label2.Caption := inttostr(month); Label3.Caption := inttostr(day);end 在线急等关于TWebBrowser的问题 一个有关DCOMConnection控件的问题!!!! 开贴补1000分,请 ly_liuyang(Liu Yang) 进来接分(8) 如何实现树行图的节点来打开对应的窗口 请问一个小问题 大家来谈谈企业开发三层分布式应用时,各工作组开发的远程数据模块RDM的合并问题 小问题:远程桌面数据库访问原理? 出现这样的错误:无法为更新行集定位:一些值可能已在最后读取后改变 按时查询报错,为什么? 初学DELPHI,插入记录问题 英语好的朋友帮一下忙 如何定制DBgride显示的行数?急!!!!
MonthStr:=Copy(Datetostr(TimePicker.date), 6, 2);
YearStr:=Copy(Datetostr(TimePicker.date), 3, 2);
year,month,day:word;
begin
DecodeDate(DateTimePicker.date, Year,Month,Day);
Label1.Caption := inttostr(year);
Label2.Caption := inttostr(month);
Label3.Caption := inttostr(day);
end
┴┬┴├┬ ┌─┼─ │◎ │ │ ○└┬┘●
─┼─││ │ │ ││─┴─┴ ──┼──
●│○││ ┴─┼─ │○ ● / │ \
var
year,month,day:word;
begin
DecodeDate(DateTimePicker.date, Year,Month,Day);
Label1.Caption := inttostr(year);
Label2.Caption := inttostr(month);
Label3.Caption := inttostr(day);
end