Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 how many days are in a month?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

redbrad0
Advanced Member

USA
3725 Posts

Posted - 01 March 2001 :  18:42:40  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
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  Show Profile  Visit redbrad0's Homepage  Send redbrad0 an AOL message
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
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 01 March 2001 :  21:30:18  Show Profile
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
======
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 01 March 2001 :  21:50:24  Show Profile  Visit HuwR's Homepage


Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 02 March 2001 :  06:48:23  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
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
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 02 March 2001 :  07:39:32  Show Profile  Visit gor's Homepage
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
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 02 March 2001 :  13:14:09  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
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
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 02 March 2001 :  14:04:46  Show Profile  Visit gor's Homepage
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
Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 02 March 2001 :  14:07:28  Show Profile  Visit gor's Homepage
Love you new sig btw

Pierre
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 02 March 2001 :  14:12:36  Show Profile
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
======
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20595 Posts

Posted - 02 March 2001 :  14:43:53  Show Profile  Visit HuwR's Homepage
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

Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 02 March 2001 :  19:01:31  Show Profile
Oh, I got caught making up new endings :)

======
Doug G
======
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 04 March 2001 :  15:36:28  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
quote:

Love you new sig btw

Pierre



Thanks. Gotta be famous for something

Dave Maxwell
--------------
Proud to be a "World Class" Knucklehead
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.23 seconds. Powered By: Snitz Forums 2000 Version 3.4.07