Hi Yvette, 

Does this work for you?


<form>
Date:
    <SELECT name="date">
    <cfset startweek_dt = #Now()#>
    <cfloop index="ii" from="0" to="6">
        <cfset startweek_dt = DateAdd('d',ii, startweek_dt)>
        <CFOUTPUT>
        <OPTION value="#startweek_dt#">#DateFormat(startweek_dt, 'MMMM
DD,YYYY')#</OPTION>
        </cfoutput>
        </cfloop>
    </SELECT>
</form>


Nick


on 19/03/01 9:46, Yvette Ingram at [EMAIL PROTECTED] wrote:

> John:
> 
> Thanks.
> This is closer.  I tried this and it still only gets me 3/19/01 through
> 3/24/01.  I need 3/18/01 through 3/24/01.
> 
> 
> <form>
> Date:
> <SELECT name="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, 'MMMM
> DD,YYYY')#</OPTION>
> </cfoutput>
> </cfloop>
> </SELECT>
> </form>
> 
> 
> Yvette Ingram
> Brainbench Certified ColdFusion 4.5 Programmer
> Email: ingramrecruiting@erols or
> [EMAIL PROTECTED]
> ICQ:  21200397
> 
> 
> ----- Original Message -----
> From: "John Wilker" <[EMAIL PROTECTED]>
> To: "CF-Talk" <[EMAIL PROTECTED]>
> Sent: Sunday, March 18, 2001 5:22 PM
> Subject: RE: Date/Time Nightmare
> 
> 
>> what about:
>> 
>> <CFSELECT>
>> <cfloop index="ii" from="1" to="6">
>>  <cfset startweek_dt = DateAdd('d',1, startweek_dt)>
>>  <CFOUTPUT><OPTION
> value="#startweek_dt#">#startweek_dt#</OPTION></cfoutput>
>> </cfloop>
>> </CFSELECT>
>> 
>> then dateformat then to look like you need them to respectively.
>> 
>> J.
>> 
>> John Wilker
>> Web Applications Consultant
>> Allaire Certified ColdFusion Developer
>> 
>> Office: 909-943-8428
>> www.billtracker.org <http://www.billtracker.org>
>> 
>> 
>> -----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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to