473,372 Members | 1,365 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

Format string for phone number

Hi,

I am wondering if there is any format string for phone number. Just like
those dd:mm:yyyy or C for currency. Can anyone enlighten me?

Thank you in advance,

Sunny
Jul 21 '05 #1
3 2408
Sansanee,
I am wondering if there is any format string for phone number. Just like
those dd:mm:yyyy or C for currency. Can anyone enlighten me?

Do you have in mind Cairo or an other City on earth?

I hope with showing this that this is almost impossible, everywhere are
other telephone formats used.

In the small country I live at least 3.

Cor
Jul 21 '05 #2
As Cor said already, this format is different in different places. But you
can use regular expressions to define a format for as required by your
application.

Girish

"Cor Ligthert" wrote:
Sansanee,
I am wondering if there is any format string for phone number. Just like
those dd:mm:yyyy or C for currency. Can anyone enlighten me?

Do you have in mind Cairo or an other City on earth?

I hope with showing this that this is almost impossible, everywhere are
other telephone formats used.

In the small country I live at least 3.

Cor

Jul 21 '05 #3
At least something like +{2 digits} for country code then {some digits}
(usually not beginning with 0 if you added the country code before) for
the place and {more digits} for the actual number... but there is not
much else you can do about the 'format'.

GirishKumar schrieb:
As Cor said already, this format is different in different places. But you
can use regular expressions to define a format for as required by your
application.

Girish

"Cor Ligthert" wrote:

Sansanee,

I am wondering if there is any format string for phone number. Just like
those dd:mm:yyyy or C for currency. Can anyone enlighten me?


Do you have in mind Cairo or an other City on earth?

I hope with showing this that this is almost impossible, everywhere are
other telephone formats used.

In the small country I live at least 3.

Cor

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: deko | last post by:
I have a (Access 2003) contact management database where the user can double-click a contact's phone number in a form and have the Windows Phone Dialer dial the number. The problem is the number...
6
by: Poewood | last post by:
Is there a way to parse the contents of a textbox into a phone number format? Actually I would like to save the input as a number but display it as a phone number in the typical US format (000)...
3
by: Eddy Soeparmin | last post by:
Hi, How do I apply phone format in a string field? for example (770) 123-1234. Please let me know. Thanks. Eddy
1
by: John Chorlton | last post by:
I've been attempting to pass a chunk of data back from a child Windows form using public properties on the form and have been getting some odd errors. I wanted to return a row of data to avoid...
3
by: Mike | last post by:
I need to update a table with a phone number and have the phone number like (800)555-1212 how can I put ( ) around the area code in the update process?
6
by: KFactor | last post by:
I would like to convert a 10-digit string phone number (1234567890) to say (xxx) xxx-xxxx. Is there a function for this or should I write the code to piece together one character at a time? Any...
3
by: Sansanee | last post by:
Hi, I am wondering if there is any format string for phone number. Just like those dd:mm:yyyy or C for currency. Can anyone enlighten me? Thank you in advance, Sunny
2
by: jeswin12 | last post by:
I used the following script to auto format the phone number field in my form. http://javascript.internet.com/forms/format-phone-number.html The problem with this code is im able to set the...
6
by: JFB | last post by:
Hi all, How can I format a fax number as 888-333-444? The number is coming from database as 8883334444 <ItemTemplate> <%#container.dataItem("cfax")%> </ItemTemplate> Tks JFB
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.