Thanks Marius. OK. Works for year, month, but not day
I did this code to format the date: 20071104 <CFSET thisYear=left(get.enddate,4)> <CFSET thisMonth=mid(get.enddate,5,2)> <CFSET thisDay=right(get.enddate,2)> I got Year: 2007 Month: 11 Day: Works for Year and month, but does not display the day: 04 -----Original Message----- From: Marius Milosav [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 9:31 AM To: CF-Talk Subject: RE: date format display <cfoutput>#dateformat(CreateDate (thisYear, thisMonth, thisDay),"YYYY-MM-DD")#</cfoutput> Marius -----Original Message----- From: Orlini, Robert [mailto:[EMAIL PROTECTED] Sent: October 4, 2007 9:23 AM To: CF-Talk Subject: RE: date format display Thanks Paul. How is this incorporated into the dateformat function? I'm new to this. -----Original Message----- From: Paul Hastings [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 8:58 AM To: CF-Talk Subject: Re: date format display Orlini, Robert wrote: > I brought this up before, but I need a date (displayed for example as: 20071104) to be formatted to display and if you did you'll have been told to parse your date string. thisYear=left(get.enddate,4); thisMonth=mid(get.enddate,5,2); thisDay=right(get.enddate,2); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion is delivering applications solutions at at top companies around the world in government. Find out how and where now http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:290180 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

