FYI - sometimes people find themselves running the same loop over and over
again in a page. For example if you have a page that lets the user pick 4
or 5 different dates then you might find yourself looping over the days in a
month 4 or 5 times. In times like this it is much faster to run the
> It makes sense if what I'm about to say is correct... your
> code loops over the variable #firstday# 31 times and
> #firstday# takes the value of the index named "firstday" each
> time it loops.
Err - yea - kinda. Your wording is a bit convaluted - but maybe it's
just me. Think of it like th
loops.
Now, Tony's code is a bit more refined than mine because it outputs the
number of days in the month we're currently in, correct?
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 3:52 PM
To: CF-Talk
Subject: RE: days in
monitoring, mapping & reporting
www.navtrak.net
410.548.2337
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 3:52 PM
To: CF-Talk
Subject: RE: days in a month
To make things easier, let's remove the HTML and just do:
ting
www.navtrak.net
410.548.2337
-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 3:55 PM
To: CF-Talk
Subject: RE: days in a month
Thanks to all that responded... Raymond yours appeared the easiest...
I need to understand loops bette
PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -Original Message-
> From: Tim Laureska [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 18, 2003 2:55 PM
> To: CF-Talk
> Subject: RE: da
#
-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 3:18 PM
To: CF-Talk
Subject: RE: days in a month
You are calling the daysInMonth function on a number, not a real date,
and you don't need it anyway. Just change the option li
a" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 19, 2003 9:24 AM
Subject: days in a month
> Hello. I'm trying to simplify the code for a drop down list of total #
> of possible days in a month (31). to look something like what
ting
www.navtrak.net
410.548.2337
-Original Message-
From: Tim Laureska [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 18, 2003 3:25 PM
To: CF-Talk
Subject: days in a month
Hello. I'm trying to simplify the code for a drop down list of total #
of possible days in a month (31)
#theDay#
- Original Message -
From: Tim Laureska <[EMAIL PROTECTED]>
Date: Tuesday, February 18, 2003 1:24 pm
Subject: days in a month
> Hello. I'm trying to simplify the code for a drop down list of
> total #
> of possible days in a month (31). to look som
03 2:25 PM
> To: CF-Talk
> Subject: days in a month
>
>
> Hello. I'm trying to simplify the code for a drop down list
> of total # of possible days in a month (31). to look
> something like what I'm using to display months in a year,
> which looks like this:
>
Hello. I'm trying to simplify the code for a drop down list of total #
of possible days in a month (31). to look something like what I'm using
to display months in a year, which looks like this:
#MonthasString(firstmonth)#
I tried the code below but it only returns the number
12 matches
Mail list logo