PDA

View Full Version : Formatting Strings


admin
05-30-2003, 01:36 PM
In this example, we'll show how to format a phone number...

<%
phone = 5558675309 'beginning value

phone = "(" & Left(phone,3) & ")" & Mid(phone, 4, 3) & "-" & Right(phone, 4)

Response.Write phone
%>

Ending value = (555)867-5309