I think there is a UDF at CFLIB.org that does this. Shawn Grover
-----Original Message----- From: Burcham, Steve [mailto:[EMAIL PROTECTED]] Sent: Friday, May 17, 2002 1:27 PM To: CF-Talk Subject: Phone Number Format I have a column in a SQL database called COMP_PHONE, it is a char data type. Right now the phone number is in the database as 1234567890. I want to output this as (123) 456-7980 in my application. I have tried using NumberFormat to no avail. I get an error message when I run the code stating the format is invalid. Here is the code I was using: #NumberFormat(COMP_PHONE, '(999)999-9999')# Any suggestions would be appreciated. Thank you. Steve Burcham Webmaster - Field Support Team RDO Equipment Co. Phone (701) 239-8755 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED] ______________________________________________________________________ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

