My Bad, This one works:
<cfset From = 20010103>
<cfset year = #Left(From,4)#>
<cfset Month = #Mid(From,5,2)#>
<cfset Day = #Right(From,2)#>
<CFSET NewDate = "#Month#/#Day#/#Year#">
<CFOUTPUT>#NewDate#</CFOUTPUT>
Larry Juncker
Senior Cold Fusion Developer
Heartland Communications Group, Inc.
-----Original Message-----
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 11:33 AM
To: CF-Talk
Subject: Date Conversion
What's the easiest way to convert the following date format since the
DateFormat function doesn't like it?
FROM: 20010103
TO: 01/03/2001
Thanks,
Dave
===============================
David R Hannum
Ohio University
Web Analyst/Programmer
(740) 597-2524
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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