有没有获得某月的具体天数的函数或代码(50分)

  • 主题发起人 主题发起人 chenglc
  • 开始时间 开始时间
C

chenglc

Unregistered / Unconfirmed
GUEST, unregistred user!
有没有获得某月的具体天数的函数或代码,请各位帮忙解决
 
DaysInMonth
 
Uses
DateUtils;
function DaysInAMonth(const AYear, AMonth: Word): Word;
 
非常感谢!!!
 
uses DateUtils;

var
n: integer;
...
n:=DaysInMonth(now);//用日期做参数
或:
n:=DaysInAMonth(2006,11);//用年、月(word 类型)做参数
 

Similar threads

后退
顶部