471,357 Members | 1,068 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 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 2272
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by Poewood | last post: by
3 posts views Thread by Eddy Soeparmin | last post: by
3 posts views Thread by Mike | last post: by
3 posts views Thread by Sansanee | last post: by
2 posts views Thread by jeswin12 | last post: by
6 posts views Thread by JFB | last post: by

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.