Right.  I'm looking for the option values so I can put the dates in a select
box.  It's running like a calendar, except I'm only printing out a week at a
time and I need those dates in a select drop-down box.  I'm just trying to
work with this week to see if this can work.


Yvette Ingram
Brainbench Certified ColdFusion 4.5 Programmer
Email: ingramrecruiting@erols or
[EMAIL PROTECTED]
ICQ:  21200397


----- Original Message -----
From: "Jason E Miller" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, March 18, 2001 5:32 PM
Subject: RE: Date/Time Nightmare


> I guess Im not quite following - do you want a <CFIF> to compare the dates
> and not let it be outside a certain range? Or are you looing for and
<OPTION
> VALUE="3/19/2001">3/19/2001 ?
>
>
> <CFFORM METHOD="POST" ACTION="test.cfm" enctype="multipart/form-data">
> <CFSELECT name="THIS_DATE">
> <cfset startweek_dt = #Now()#>
>  <cfloop index="ii" from="1" to="6">
>  <cfset startweek_dt = DateAdd('d',1, startweek_dt)>
>  <cfoutput><OPTION
>
VALUE="#startweek_dt#">#DATEFORMAT(startweek_dt,'MM/DD/YYYY')#</OPTION></cfo
> utput>
>  </cfloop>
>  </CFSELECT>
> </CFFORM>
>
> -----Original Message-----
> From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 18, 2001 2:18 PM
> To: CF-Talk
> Subject: Re: Date/Time Nightmare
>
> Jason:
>
> Thanks.  This just formats 3/19/01 through 3/24/01.  I need to get
<3/18/01
> through 3/24/01> no more, no less.  The formatting is not the problem.
>
>
> Yvette Ingram
> Brainbench Certified ColdFusion 4.5 Programmer
> Email: ingramrecruiting@erols or
> [EMAIL PROTECTED]
> ICQ:  21200397
>
>
> ----- Original Message -----
> From: "Jason E Miller" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Sunday, March 18, 2001 4:51 PM
> Subject: RE: Date/Time Nightmare
>
>
> > This should fix you up - just use the DateFormat
> >
> > <cfset startweek_dt = #Now()#>
> >  <cfloop index="ii" from="1" to="6">
> >  <cfset startweek_dt = DateAdd('d',1, startweek_dt)>
> >  <cfoutput>#DATEFORMAT(startweek_dt,'MM/DD/YYYY')#</cfoutput><br>
> >  </cfloop>
> >
> > -----Original Message-----
> > From: Yvette Ingram [mailto:[EMAIL PROTECTED]]
> > Sent: Sunday, March 18, 2001 1:50 PM
> > To: CF-Talk
> > Subject: Date/Time Nightmare
> >
> > hello,
> >
> > I "REALLY" need help on this.
> >
> > Here's the problem:
> >
> > The Code:
> > <cfset startweek_dt = #Now()#>
> >  <cfloop index="ii" from="1" to="6">
> >  <cfset startweek_dt = DateAdd('d',1, startweek_dt)>
> >  <cfoutput>#startweek_dt#</cfoutput><br>
> >  </cfloop>
> >
> > Produces this:
> > {ts '2001-03-19 16:39:43'}
> > {ts '2001-03-20 16:39:43'}
> > {ts '2001-03-21 16:39:43'}
> > {ts '2001-03-22 16:39:43'}
> > {ts '2001-03-23 16:39:43'}
> > {ts '2001-03-24 16:39:43'}
> >
> > I can't get 3/18/01 through 3/24/01 passed correct through the select
box.
> > Can I or how do accomplish this.
> >
> >
> > Yvette Ingram
> > Brainbench Certified ColdFusion 4.5 Programmer
> > Email: ingramrecruiting@erols or
> > [EMAIL PROTECTED]
> > ICQ:  21200397
> >
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to