Delphi 获取任意月份总共有多少天数
2022-12-30 14:33:03 作者:admin
本文整理自网络,侵删。
uses DateUtils;方法1:function DaysInAMonth(const AYear, AMonth: Word): Word;
方法2:
function GetDays(Year, Month): Word;beginResult := MonthDays[IsLeapYear(Year), Month];end;
Word 相当于 integer
相关阅读 >>
Delphi datetimetogmt gmt时间与tdatetime转换
Delphi连接access提示密码无效解决一例
Delphi让tedit控件的内容居中或右对齐,限制位数,仅允许输入数字
Delphi获取exe文件版本信息的函数
Delphi xe mysql数据库操作类 mysqlhelper
Delphi 调用js解决全角转半角
Delphi padl 处理字符串的函数
Delphi检测用户超过5分钟没有操作键盘或鼠标
Delphi 控制iis,检测、增加、删除虚拟目录
Delphi 遍历类中的属性
更多相关阅读请进入《Delphi》频道 >>
猜你喜欢
联络方式:
400-123-789
邮箱:xiachao@163.com
Q Q:12345678
微信公众号
微信二维码