Number of weeks in a month

IanT

Registered User.
Local time
Today, 22:04
Joined
Nov 30, 2001
Messages
191
Hi

Is there a way of calculating the number of weeks in a month!
 
Probably if you can tell us what your definition of a "week" is.
 
Last edited:
why not use integer division
eg int(NoOfDaysInMonth/7)

if there are 30 days then the result is 4
 
Dennisk said:
why not use integer division
eg int(NoOfDaysInMonth/7)

if there are 30 days then the result is 4

When is there less than or more than 4 whole weeks in a month :confused:
As RuralGuy asked what are you really after?

Brian
 

Users who are viewing this thread

Back
Top Bottom