DateTimePicker1怎样得到多少年,多少月 YearsBetween(const ANow, AThen: TDateTime): Integer;MonthsBetween(const ANow, AThen: TDateTime): Integer; 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 procedure TForm1.Button1Click(Sender: TObject);var Present: TDate; Year, Month, Day, Hour,:Word; begin Present:= DateTimePicker1.Date; DecodeDate(Present, Year, Month, Day); Label1.Caption := 'Today is Day ' + IntToStr(Day) + ' of Month ' + IntToStr(Month) + ' of Year ' + IntToStr(Year);end; 在Delphi2006版本中,如何安装Decision cube? 把01000000转化成10进制数为多少怎么转化 灾难性故障 大侠过来看,帮个小忙 小弟我又有一事不明啊,麻烦大家了 问一个跟这个论坛有关系的帖子,为什么我不能提前帖子了? 高分寻找比水晶报表控件还牛得报表控件 语句有问题吗? dblookupcombobox问题 关于pascal语言的问题 6 我想在LISTVIEW中显示一列数据,该如何写? 如何实现自动合并?
Present: TDate;
Year, Month, Day, Hour,:Word;
begin
Present:= DateTimePicker1.Date;
DecodeDate(Present, Year, Month, Day);
Label1.Caption := 'Today is Day ' + IntToStr(Day) + ' of Month '
+ IntToStr(Month) + ' of Year ' + IntToStr(Year);
end;