on 9/9/00 7:03 PM, Mark Adams at [EMAIL PROTECTED] wrote:
> I need to format this phone number, #NumberFormat(PhoneNumber)# to look
> like this 555-222-0000 but I am not sure how to properly mask it. Any Ideas?
I don't know if you can do that with NumberFormat. However, you can try
this:
<cfset PhoneNumber = 5552220000>
<cfset PhoneNumber = Insert("-", PhoneNumber, 3)>
<cfset PhoneNumber = Insert("-", PhoneNumber, 7) >
<cfoutput>#PhoneNumber#</cfoutput>
Maybe others have a more elegant way of doing it.
Sebastian
------------------------------------------------------------------------------
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.