本文整理自网络,侵删。
procedure TFrmLltj.FormActivate(Sender: TObject);var Present: TDateTime; Year, Month, Day, Hour, Min, Sec, MSec:Word;begin Present:= Now; DecodeDate(Present, Year, Month, Day); DecodeTime(Present, Hour, Min, Sec, MSec); Showmessage(DateToStr(Present)+' '+TimeToStr(Present,'hh'));//显示年月日时分秒 Showmessage(formatdatetime('hh:mm',time));//显示时分 cbb_qs_n.Text := inttostr(Year);//显示年 cbb_qs_y.Text := inttostr(Month);//显示月 cbb_qs_r.Text := inttostr(Day);//显示日 cbb_qs_s.Text := IntToStr(Hour);//显示时 cbb_qs_f.Text := IntToStr(Min);//显示分 end;by huanfuChen 相关阅读 >>
Delphi firedac 连接access mdb数据库的方法
Delphi研究之驱动开发篇(七)--利用共享内存与用户模式
Delphi tstringlist indexof find 查找字符串
Delphi 10.3.3 启动cnpack ide 专家 cnwizards coreide260.bpl错误解决办法
更多相关阅读请进入《Delphi》频道 >>