如何从win32的DateTimePicker中分别取出年,月,日 我想从DateTimePicker中分别取出年,月,日。进行分别存储。如何作? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 var year,month,day:word;decodedate(form1.DateTimePicker1.DateTime,year,month,day); var Y,M,D:stringlongdateformat:='yyyymmdd';shortdateformat:='yyyymmdd';Y:=copy(datetostr(DateTimePicker1.date),1,4);M:=copy(datetostr(DateTimePicker1.date),5,2);D:=copy(datetostr(DateTimePicker1.date),7,2); var Pyear,PMonth,PDay:word;decodedate(frmjftzd.DTPPrintDate.Date,Pyear,PMonth,PDay); 在delphi中怎么给一个数组循环覆盖赋值呀? 开帖散分,10/10[铁公鸡拨毛] adoquery中有没有哪个属性可以知道当前指向第几条记录? 报表如何不预览直接打印!? DELPHI书籍问题! webbrowser中打开新窗体的问题。 急 急 急 不知道这样的情况应当选用什么样的数据结构来实现比较好? 如何把Edit框中的竖线脱字符改成横线呢?我查到CreateCaret,但用起来没效果 构建Delphi与Informix的集成开发环境 一个关于TreeView的问题????? 欢迎大家下载我的软件,下载者有分.
year,month,day:word;
decodedate(form1.DateTimePicker1.DateTime,year,month,day);
Y,M,D:string
longdateformat:='yyyymmdd';
shortdateformat:='yyyymmdd';
Y:=copy(datetostr(DateTimePicker1.date),1,4);
M:=copy(datetostr(DateTimePicker1.date),5,2);
D:=copy(datetostr(DateTimePicker1.date),7,2);
Pyear,PMonth,PDay:word;decodedate(frmjftzd.DTPPrintDate.Date,Pyear,PMonth,PDay);