一个基础问题:??? 请问各位高手: decodedate();此函数是干什么用的?急速求救????!!!! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 将日期型数据分解为年月日(word型) procedure DecodeDate(Date: TDateTime; var Year, Month, Day: Word);Returns Year, Month, and Day values for a TDateTime value.procedure TForm1.Button1Click(Sender: TObject);var Present: TDateTime; Year, Month, Day, Hour, Min, Sec, MSec: Word; begin Present:= Now; DecodeDate(Present, Year, Month, Day); Label1.Caption := 'Today is Day ' + IntToStr(Day) + ' of Month ' + IntToStr(Month) + ' of Year ' + IntToStr(Year); DecodeTime(Present, Hour, Min, Sec, MSec); Label2.Caption := 'The time is Minute ' + IntToStr(Min) + ' of Hour ' + IntToStr(Hour);end; var lw_year,lw_mnth,lw_day :word;decodedate(date,lw_year,lw_mnth,lw_day);将传入的DATE分解成年月日呀.得到的年月日是WORD型 报表问题 这些东西上那里下 想問一下,我創建的一個form的位置在edit的下方位置,如何做呢 ★Windows XP下的程序为什么会有白斑? 请问哪套报表控件可以支持Unicode 请教一下做VXD的方法,我只想用VXD启动我的程序 delphi6开发sqlserver发布问题 请问纳为知道那里有activeskin3.603的注册机 谁能告诉我 VB中的 hDc 在Delphi 中 相对应的是哪个属性 请教一段文本字符串处理的写法 三个问题,请帮忙看看,来者有分。 关于Format函数
Returns Year, Month, and Day values for a TDateTime value.procedure TForm1.Button1Click(Sender: TObject);var
Present: TDateTime;
Year, Month, Day, Hour, Min, Sec, MSec: Word;
begin
Present:= Now;
DecodeDate(Present, Year, Month, Day);
Label1.Caption := 'Today is Day ' + IntToStr(Day) + ' of Month '
+ IntToStr(Month) + ' of Year ' + IntToStr(Year);
DecodeTime(Present, Hour, Min, Sec, MSec);
Label2.Caption := 'The time is Minute ' + IntToStr(Min) + ' of Hour '
+ IntToStr(Hour);
end;
decodedate(date,lw_year,lw_mnth,lw_day);
将传入的DATE分解成年月日呀.
得到的年月日是WORD型