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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to