本文整理自网络,侵删。
YearOf
(所在单元:DateUtils)
功能说明:根据指定的日期,返回年。
参考实例:
Label1.Caption := IntToStr(YearOf(Date));
假设当前日期为2010年1月2日,那么Label将显示为2010。
相关阅读 >>
Delphi xe5 android 解决ide真机调试不起问题
Delphi 2009 之 tcategorypanelgroup[5]: headerstyle
更多相关阅读请进入《Delphi》频道 >>