Delphi 获取任意月份总共有多少天数


本文整理自网络,侵删。

 
uses DateUtils;
方法1
function DaysInAMonth(const AYear, AMonth: Word): Word;

 

方法2

function GetDays(Year, Month): Word;
begin
Result := MonthDays[IsLeapYear(Year), Month];
end;

Word 相当于 integer 

相关阅读 >>

Delphi 2009 之 tcategorypanelgroup[3]: color

Delphi 计算程序运行时间

Delphi listview 设置固定列宽

Delphi中建议使用的语句

Delphi动态设置spcomm的属性值

Delphi fdconnection查看所有表包含用户表和系统表

Delphi 如何取得系统中的桌面的路径

Delphi 判断文件是否存在

Delphi 跟随鼠标位置点击弹出菜单

Delphi2010 的自带的内存泄漏检测

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



打赏

取消

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

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

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

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

评论

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

    暂无评论...