<cfset thisdate="20000103">
<cfset
newdate=#createdate(left(thisdate,4),mid(thisdate,5,2),right(thisdate,2))#>
<cfoutput>#dateformat(newdate,'mm/dd/yyyy')#</cfoutput>

*************
Diana Nichols
Webmistress
http://www.lavenderthreads.com
770.434.7374

"One man's magic is another man's engineering." ---Lazarus Long

-----Original Message-----
From: Dave Hannum [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 22, 2001 12:33 PM
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

Reply via email to