MonthOfTheYear:取得一个TDateTime变量的月份在年度中的索引


本文整理自网络,侵删。

 声明:function MonthOfTheYear ( const Date : TDateTime ) : Word;

描述:MonthOfTheYear函数返回月份在年中的索引值。

这个值的范围在1到12(一月到12月)之间。

var
myDate : TDateTime;

begin
myDate := EncodeDate(2002, 10, 29);
ShowMessage('The month of the year = '+
IntToStr(MonthOfTheYear(myDate)));
end;

程序运行结果:

The month of the year = 10

相关阅读 >>

Delphi 只用一条语句就能使tbitmap反色

Delphi 动态添加资源文件

Delphi wmi 取显卡gpu信息

Delphi编写的lpk.dll专杀,可清理rar

Delphi 安卓app的https访问权限

Delphi xe6 android视频采集

Delphi 解决android 9上无法使用http协议

Delphi控制摄像头

Delphi共享软件防破解的实用方法

Delphi winapi: gettickcount - 获取系统已启动的时间

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...