John:
No. I know how to format it. <cfset startweek_dt = #Now()#> produces
3/18/01. All I'm doing is adding 6 more days to it. I'm trying to get all
7 days in the format below so I can pass these dates through a select box.
So, what I want is:
(ts '2001-03-18 16:39:43'}
{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'}
Like this:
<select name="date">
<option value="(ts '2001-03-18 16:39:43'}">March 18, 2001</option>
<option value="(ts '2001-03-19 16:39:43'}">March 19, 2001</option>
<option value="(ts '2001-03-20 16:39:43'}">March 20, 2001</option>
<option value="(ts '2001-03-21 16:39:43'}">March 21, 2001</option>
<option value="(ts '2001-03-22 16:39:43'}">March 22, 2001</option>
<option value="(ts '2001-03-23 16:39:43'}">March 23, 2001</option>
<option value="(ts '2001-03-24 16:39:43'}">March 24, 2001</option>
</select>
Can this be done? How? I've tried numerous ways with loops but to no
avail. My head hurts.
Thanks to all/anyone who can make this work.
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 4:48 PM
Subject: RE: Date/Time Nightmare
> you could wrap the variable in DateFormat(var, "mm/dd/yy")
>
> which would produce a date that looks like what you want?
>
> Is that what you were asking?
>
> 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/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists