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:302455
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to