Author |
Topic  |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
Posted - 01 March 2001 : 18:42:40
|
i know there has to be a simple code to tell how many days are in a month, anyone know how?
Brad |
|
redbrad0
Advanced Member
    
USA
3725 Posts |
Posted - 01 March 2001 : 19:01:19
|
nevermind i got it....
Function GetDaysInMonth(iMonth, iYear) Dim dTemp dTemp = DateAdd("d", -1, DateSerial(iYear, iMonth + 1, 1)) GetDaysInMonth = Day(dTemp) End Function
Brad |
 |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 01 March 2001 : 21:30:18
|
So you don't need "Thirty days hath September, April, June and November, all the rest have thirty one except February which should be called Febru-vary" ?
Or an explanation of the knuckle method of figuring it out?
====== Doug G ====== |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 01 March 2001 : 21:50:24
|
 
|
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 02 March 2001 : 06:48:23
|
quote:
So you don't need "Thirty days hath September, April, June and November, all the rest have thirty one except February which should be called Febru-vary" ?
I haven't heard this saying for a LOOOOONNNNGGG time
quote:
Or an explanation of the knuckle method of figuring it out?
Or am I just a "knucklehead" for not understanding this one???
Dave Maxwell -------------- When's the next meeting of Snitzaholics Anonymous |
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 02 March 2001 : 07:39:32
|
quote:
quote:
Or an explanation of the knuckle method of figuring it out?
Or am I just a "knucklehead" for not understanding this one???
And that is an international method, because I even know that one. Make a fist, start at the first knuckle of your left hand (will work from right also). The first knuckle is January, 31 days, between first and second lies February (ok exception) 28/29 days, second knuckle is March (31 days), between second and third knuckle lies April (30 days), third knuckle is Mai (31 days) etc. It even works for July and August since you then move from the last knuckle of you left hand to the first on your right hand (hence two months with 31 days).

Pierre |
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 02 March 2001 : 13:14:09
|
quote:
And that is an international method, because I even know that one.
OK, so I'm a world class "Knucklehead" . I honestly never heard that saying in my life......
Dave Maxwell -------------- When's the next meeting of Snitzaholics Anonymous |
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 02 March 2001 : 14:04:46
|
quote:
quote:
And that is an international method, because I even know that one.
OK, so I'm a world class "Knucklehead" . I honestly never heard that saying in my life......
Really, and I thought you were pulling my leg letting me explain you something you allready knew (didn't stop me from explaining it anyway).
Well, you learn something every day. 
Pierre |
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
Posted - 02 March 2001 : 14:07:28
|
Love you new sig btw 
Pierre |
 |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 02 March 2001 : 14:12:36
|
quote: Or an explanation of the knuckle method of figuring it out?
You can do it all with one hand too. Make a fist and start on the bump on either side, go across valleys and peaks when you get to the last peak jump back to to the other side peak and continue.
====== Doug G ====== |
 |
|
HuwR
Forum Admin
    
United Kingdom
20595 Posts |
Posted - 02 March 2001 : 14:43:53
|
quote:
quote:
And that is an international method, because I even know that one.
OK, so I'm a world class "Knucklehead" . I honestly never heard that saying in my life......
Dave Maxwell -------------- When's the next meeting of Snitzaholics Anonymous
Me too, cos I'd never heard that either we were always taught 30 days hath september, april, june and november, all the rest have 31 except february alone
|
 |
|
Doug G
Support Moderator
    
USA
6493 Posts |
Posted - 02 March 2001 : 19:01:31
|
Oh, I got caught making up new endings :)
====== Doug G ====== |
 |
|
davemaxwell
Access 2000 Support Moderator
    
USA
3020 Posts |
Posted - 04 March 2001 : 15:36:28
|
quote:
Love you new sig btw 
Pierre
Thanks. Gotta be famous for something
Dave Maxwell -------------- Proud to be a "World Class" Knucklehead |
 |
|
|
Topic  |
|