If votedate is your variable and votedate initially equals 2003-10-28 such
that it is in mySql then this should do it for you:

#dateFormat(votedate,"mmm dd, yyyy")#

Otherwise you are going to need to break it up like this first:

<cfset votedate =
"#Left(votedate,4)#-#Mid(votedate,5,2)#-#Right(votedate,2)#">

Try the code below:

<cfset votedate = "20031028">

<cfset votedate =
"#Left(votedate,4)#-#Mid(votedate,5,2)#-#Right(votedate,2)#">

<cfoutput>
votedate = #votedate#<br>
votedate = #dateformat(votedate,"mmm dd, yyyy")#
</cfoutput>


-----Original Message-----
From: Robert Orlini [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 28, 2003 12:16 PM
To: CF-Talk
Subject: date convert

How can I convert this date: 20031028 into a month, day, year format with
the dateformat command?
I tried: #dateformat((votedate),"mmm dd, yyyy")#, but it does not display
anything.
Thanks in advance.

Robert O.
HWW


[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to