Try something like this:

<cfset popdate = "Tue, 19 Sep 2000 14:41:03">
<cfset popdate = "#Right(popdate, 20)#">
<cfset newpopdate = "#DateFormat(popdate, "dd-mm-yyyy")#">

<cfoutput>
#newpopdate#
</cfoutput>

--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net 
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------


> -----Original Message-----
> From: avex [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 19, 2000 9:38 PM
> To: [EMAIL PROTECTED]
> Subject: [CF-Talk] cfpop date formatting problem
> 
> 
> Hi...
> 
> I am having a problem with cfpop and formatting the date.
> 
> I want to do:
> #DateFormat(date, "DD-MM-YYYY")#
> 
> but i get the error:
> 
> Parameter 1 of function DateFormat which is now " Tue, 19 Sep 
> 2000 14:41:03
> +1000" must be a date/time value
> The error occurred while evaluating the expression:
> #DateFormat(date, "MMMM D (DDD)")#
> 
> How do I get the CFPOP date into a format so i can apply the DateFormat
> function to it?
> 
> thanks
> chad
> 
> 
> ------------------------------------------------------------------
> ------------
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit 
> http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf
_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebarRsts&bodyRsts/cf_talk or send a message 
to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to