Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Total number of daysin a month

Status
Not open for further replies.

bongmarley

Programmer
Oct 21, 2002
74
CA
Isthere afunction you can use to determinethe number of days in a month
 
function getTotalDays(iMonth, iYear)
days = 1
while isdate(iMonth & "/" & (days + 1) & "/" & iYear)
days = days + 1
wend
getTotalDays = days
end function

msgbox getTotalDays(2,2004) =========================================================
if (!succeed) try();
-jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top