You can call them date as long as they're not form field variables. 

-----Original Message-----
From: Kris Jones [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 01, 2008 2:48 PM
To: CF-Talk
Subject: Re: Help with Regular expression

You'd want to use ReReplace, rather than Replace of course. But probably
just formatting it with dateformat() would work:
<cfset Date = dateformat(date, "mmmm d yyyy") />

Also, don't know if this is still a problem in CF, but be careful about
calling variables "date"...

Cheers,
Kris

>  I am trying to replace
>  "April 01 2008"  with "April 1 2008" or  "April 02 2008" with "April 
> 2 2008", ......
>
>  This is a start
>  <cfset Date = "#Replace("#Date#","^[A-Za-z]+","April
>  ")#">



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302457
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to