Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Standard telephone number format?

Standard telephone number format?

Scheduled Pinned Locked Moved The Lounge
question
26 Posts 10 Posters 180 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Domenic Denicola
    wrote on last edited by
    #1

    Does one exist? I'm getting tired of all the different ways to write phone numbers, and have decided to settle on one. So I was wondering if there already was a standard (like the ISO date format, "yyyy-mm-dd") that I should use, or if I should just pick my own?


    -Domenic Denicola- [CPUA 0x1337] “I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”

    N M 2 Replies Last reply
    0
    • D Domenic Denicola

      Does one exist? I'm getting tired of all the different ways to write phone numbers, and have decided to settle on one. So I was wondering if there already was a standard (like the ISO date format, "yyyy-mm-dd") that I should use, or if I should just pick my own?


      -Domenic Denicola- [CPUA 0x1337] “I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      Phone number formats differ across countries :- US numbers go like +1-650-123-1234 In India (in Trivandrum anyway) we have +91-471-2555777 Nish


      Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

      M L D P 4 Replies Last reply
      0
      • N Nish Nishant

        Phone number formats differ across countries :- US numbers go like +1-650-123-1234 In India (in Trivandrum anyway) we have +91-471-2555777 Nish


        Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

        M Offline
        M Offline
        Michael Dunn
        wrote on last edited by
        #3

        Nishant S wrote: +1-650-123-1234 Within the US and Canada, numbers are written (650) 123-1234. The 1 before the area code is implied since you need to dial it anyway when calling a different area code. --Mike-- The Internet is a place where absolutely nothing happens.   -- Strong Bad 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

        N P 2 Replies Last reply
        0
        • N Nish Nishant

          Phone number formats differ across countries :- US numbers go like +1-650-123-1234 In India (in Trivandrum anyway) we have +91-471-2555777 Nish


          Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          In India numbers can be represented as (471) 255-5777 format like US. Dept. of Telecom standardised to 10 digit phone numbers. The country code is not required. Though in India to dial another area code, you have to preceed it with 0 [0 471 255 5777] instead of a 1 as in US. By the way, is that your home phone number in TVM? My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers

          N 1 Reply Last reply
          0
          • M Michael Dunn

            Nishant S wrote: +1-650-123-1234 Within the US and Canada, numbers are written (650) 123-1234. The 1 before the area code is implied since you need to dial it anyway when calling a different area code. --Mike-- The Internet is a place where absolutely nothing happens.   -- Strong Bad 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #5

            Michael Dunn wrote: Within the US and Canada, numbers are written (650) 123-1234. Thanks :-) I guess I knew that rather subconciously. Now I will keep this in mind Nish


            Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

            1 Reply Last reply
            0
            • L Lost User

              In India numbers can be represented as (471) 255-5777 format like US. Dept. of Telecom standardised to 10 digit phone numbers. The country code is not required. Though in India to dial another area code, you have to preceed it with 0 [0 471 255 5777] instead of a 1 as in US. By the way, is that your home phone number in TVM? My article on a reference-counted smart pointer that supports polymorphic objects and raw pointers

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #6

              Thomas George wrote: By the way, is that your home phone number in TVM? Nope, I first wrote my home phone number. Then dunno why, felt like removing it. There's no one there now, I guess my dad pays the minimum montly rent to keep it alive. Nish


              Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

              1 Reply Last reply
              0
              • N Nish Nishant

                Phone number formats differ across countries :- US numbers go like +1-650-123-1234 In India (in Trivandrum anyway) we have +91-471-2555777 Nish


                Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                D Offline
                D Offline
                David Wulff
                wrote on last edited by
                #7

                To add to that, over here we have: 01111-666666 01111-55555 0111-333-4444 0111-333-333 The zero is the start of the area code (locally for example it is 01884) which is dropped when the international code is added (e.g. 44-1884). After the area code follows the number, of which the five digit type is (AFAIK) now derecated and typically only for older lines, whereas the six digit variety is the most common, with areas like London and Bristol commonly reformatting the numbers to include the last digit of the area code as the first digit of the number (I don't know that for a fact, they may just have a four digit code and a six or seven digit number, because those areas would have had exchanges before the rest of the country? :~ Special codes like toll free or local rate have special four digit area codes and seven digit numbers). The international code is obviously dropped for all UK numbers and the area code is dropped for all in-area numbers. Area codes don't follow geographic areas, they are set much like the area prefix on our postcodes are. I don't think a standard format would be possible, except to say "a number containing the digits 0 to 9 that is between, say, five and 30 digits long".


                David Wulff

                http://www.davidwulff.co.uk

                N D J 3 Replies Last reply
                0
                • D David Wulff

                  To add to that, over here we have: 01111-666666 01111-55555 0111-333-4444 0111-333-333 The zero is the start of the area code (locally for example it is 01884) which is dropped when the international code is added (e.g. 44-1884). After the area code follows the number, of which the five digit type is (AFAIK) now derecated and typically only for older lines, whereas the six digit variety is the most common, with areas like London and Bristol commonly reformatting the numbers to include the last digit of the area code as the first digit of the number (I don't know that for a fact, they may just have a four digit code and a six or seven digit number, because those areas would have had exchanges before the rest of the country? :~ Special codes like toll free or local rate have special four digit area codes and seven digit numbers). The international code is obviously dropped for all UK numbers and the area code is dropped for all in-area numbers. Area codes don't follow geographic areas, they are set much like the area prefix on our postcodes are. I don't think a standard format would be possible, except to say "a number containing the digits 0 to 9 that is between, say, five and 30 digits long".


                  David Wulff

                  http://www.davidwulff.co.uk

                  N Offline
                  N Offline
                  Nish Nishant
                  wrote on last edited by
                  #8

                  David Wulff wrote: I don't think a standard format would be possible, except to say "a number containing the digits 0 to 9 that is between, say, five and 30 digits long". Perhaps a VARCHAR(30) would do fine eh? Nish


                  Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                  D 1 Reply Last reply
                  0
                  • N Nish Nishant

                    David Wulff wrote: I don't think a standard format would be possible, except to say "a number containing the digits 0 to 9 that is between, say, five and 30 digits long". Perhaps a VARCHAR(30) would do fine eh? Nish


                    Author of the romantic comedy Summer Love and Some more Cricket [New Win] Review by Shog9 Click here for review[NW]

                    D Offline
                    D Offline
                    David Wulff
                    wrote on last edited by
                    #9

                    :)


                    David Wulff

                    http://www.davidwulff.co.uk

                    1 Reply Last reply
                    0
                    • D David Wulff

                      To add to that, over here we have: 01111-666666 01111-55555 0111-333-4444 0111-333-333 The zero is the start of the area code (locally for example it is 01884) which is dropped when the international code is added (e.g. 44-1884). After the area code follows the number, of which the five digit type is (AFAIK) now derecated and typically only for older lines, whereas the six digit variety is the most common, with areas like London and Bristol commonly reformatting the numbers to include the last digit of the area code as the first digit of the number (I don't know that for a fact, they may just have a four digit code and a six or seven digit number, because those areas would have had exchanges before the rest of the country? :~ Special codes like toll free or local rate have special four digit area codes and seven digit numbers). The international code is obviously dropped for all UK numbers and the area code is dropped for all in-area numbers. Area codes don't follow geographic areas, they are set much like the area prefix on our postcodes are. I don't think a standard format would be possible, except to say "a number containing the digits 0 to 9 that is between, say, five and 30 digits long".


                      David Wulff

                      http://www.davidwulff.co.uk

                      D Offline
                      D Offline
                      Domenic Denicola
                      wrote on last edited by
                      #10

                      Eek! I had no idea! I thought that internationally there was all one big unified length/format, and that it was the omission of country/area codes and the addings of various "."s, "-"s, and "+"s that would differ and therefore need to be standardized in its formatting. Wow, well, I learned something new today!


                      -Domenic Denicola- [CPUA 0x1337] “I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”

                      D C 2 Replies Last reply
                      0
                      • D Domenic Denicola

                        Eek! I had no idea! I thought that internationally there was all one big unified length/format, and that it was the omission of country/area codes and the addings of various "."s, "-"s, and "+"s that would differ and therefore need to be standardized in its formatting. Wow, well, I learned something new today!


                        -Domenic Denicola- [CPUA 0x1337] “I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”

                        D Offline
                        D Offline
                        David Wulff
                        wrote on last edited by
                        #11

                        We can't even agree on a language - what makes you think we can agree on a telephone number format? :rolleyes:


                        David Wulff

                        http://www.davidwulff.co.uk

                        1 Reply Last reply
                        0
                        • D Domenic Denicola

                          Eek! I had no idea! I thought that internationally there was all one big unified length/format, and that it was the omission of country/area codes and the addings of various "."s, "-"s, and "+"s that would differ and therefore need to be standardized in its formatting. Wow, well, I learned something new today!


                          -Domenic Denicola- [CPUA 0x1337] “I was born human. But this was an accident of fate—a condition merely of time and place. I believe it's something we have the power to change…”

                          C Offline
                          C Offline
                          ColinDavies
                          wrote on last edited by
                          #12

                          Just to blow you away, You can still find in odd locations around the world telephone numbers that end with an alphabetical letter. Like L, R, S, M. etc I'll let you guess what the letter is for. :-) Regardz Colin J Davies

                          Sonork ID 100.9197:Colin

                          I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign' Rob Manderson wrote:

                          D J 2 Replies Last reply
                          0
                          • C ColinDavies

                            Just to blow you away, You can still find in odd locations around the world telephone numbers that end with an alphabetical letter. Like L, R, S, M. etc I'll let you guess what the letter is for. :-) Regardz Colin J Davies

                            Sonork ID 100.9197:Colin

                            I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign' Rob Manderson wrote:

                            D Offline
                            D Offline
                            David Wulff
                            wrote on last edited by
                            #13

                            Colin Davies wrote: I'll let you guess what the letter is for. :) Even Uncle Google couldn't tell me. :( :~


                            David Wulff

                            http://www.davidwulff.co.uk

                            C 1 Reply Last reply
                            0
                            • D David Wulff

                              To add to that, over here we have: 01111-666666 01111-55555 0111-333-4444 0111-333-333 The zero is the start of the area code (locally for example it is 01884) which is dropped when the international code is added (e.g. 44-1884). After the area code follows the number, of which the five digit type is (AFAIK) now derecated and typically only for older lines, whereas the six digit variety is the most common, with areas like London and Bristol commonly reformatting the numbers to include the last digit of the area code as the first digit of the number (I don't know that for a fact, they may just have a four digit code and a six or seven digit number, because those areas would have had exchanges before the rest of the country? :~ Special codes like toll free or local rate have special four digit area codes and seven digit numbers). The international code is obviously dropped for all UK numbers and the area code is dropped for all in-area numbers. Area codes don't follow geographic areas, they are set much like the area prefix on our postcodes are. I don't think a standard format would be possible, except to say "a number containing the digits 0 to 9 that is between, say, five and 30 digits long".


                              David Wulff

                              http://www.davidwulff.co.uk

                              J Offline
                              J Offline
                              Joe Woodbury
                              wrote on last edited by
                              #14

                              David Wulff wrote: I don't think a standard format would be possible, except to say "a number containing the digits 0 to 9 that is between, say, five and 30 digits long". Actually, the international standard limits a full number to 15 digits. (Excluding, I believe the single digit international access prefix itself.)

                              1 Reply Last reply
                              0
                              • C ColinDavies

                                Just to blow you away, You can still find in odd locations around the world telephone numbers that end with an alphabetical letter. Like L, R, S, M. etc I'll let you guess what the letter is for. :-) Regardz Colin J Davies

                                Sonork ID 100.9197:Colin

                                I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign' Rob Manderson wrote:

                                J Offline
                                J Offline
                                Joe Woodbury
                                wrote on last edited by
                                #15

                                Colin Davies wrote: You can still find in odd locations around the world telephone numbers that end with an alphabetical letter. Like L, R, S, M. etc Not true. Including country codes, phone numbers must consist of no more than 15 digits 0-9. The use of characters in phone numbers assumes you will use the corresponding digit on the phone pad.

                                C 1 Reply Last reply
                                0
                                • D David Wulff

                                  Colin Davies wrote: I'll let you guess what the letter is for. :) Even Uncle Google couldn't tell me. :( :~


                                  David Wulff

                                  http://www.davidwulff.co.uk

                                  C Offline
                                  C Offline
                                  ColinDavies
                                  wrote on last edited by
                                  #16

                                  k, I'm not surprised that google won't show this. Originally telephone exchanges were plug and poke boards like looms. However lines were expensive and so many people used the same "earthed circuit". This was called "party lines". Two systems existed to identify the terminals (phones) on the lines. One system that was numeric where your number ended from 11 to 55 was two groups of rings, The other system was to use morse code as the idetifier. When I was a kid our phone number was 178M my uncles was 178R and the neighbours 178S, so when our phone rang it was two long numbers and when it was for my uncle it was short long short, and the neighbour short short short etc. There are still a few places like forest ranger stations that I know of that use this sort of system still, since it is so reliable. Regardz Colin J Davies

                                  Sonork ID 100.9197:Colin

                                  I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign' Rob Manderson wrote:

                                  D 1 Reply Last reply
                                  0
                                  • J Joe Woodbury

                                    Colin Davies wrote: You can still find in odd locations around the world telephone numbers that end with an alphabetical letter. Like L, R, S, M. etc Not true. Including country codes, phone numbers must consist of no more than 15 digits 0-9. The use of characters in phone numbers assumes you will use the corresponding digit on the phone pad.

                                    C Offline
                                    C Offline
                                    ColinDavies
                                    wrote on last edited by
                                    #17

                                    Check my answer to David please. Regardz Colin J Davies

                                    Sonork ID 100.9197:Colin

                                    I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign' Rob Manderson wrote:

                                    1 Reply Last reply
                                    0
                                    • M Michael Dunn

                                      Nishant S wrote: +1-650-123-1234 Within the US and Canada, numbers are written (650) 123-1234. The 1 before the area code is implied since you need to dial it anyway when calling a different area code. --Mike-- The Internet is a place where absolutely nothing happens.   -- Strong Bad 1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click! My really out-of-date homepage Sonork-100.19012 Acid_Helm

                                      P Offline
                                      P Offline
                                      peterchen
                                      wrote on last edited by
                                      #18

                                      but the "+1" would be nice anyway since it tells foreigners which country code to dial ;)


                                      If you go to war, you will destroy a great country a stoned greek chick to the richest man of the world
                                      [sighist] | [Agile Programming] [doxygen]

                                      C 1 Reply Last reply
                                      0
                                      • P peterchen

                                        but the "+1" would be nice anyway since it tells foreigners which country code to dial ;)


                                        If you go to war, you will destroy a great country a stoned greek chick to the richest man of the world
                                        [sighist] | [Agile Programming] [doxygen]

                                        C Offline
                                        C Offline
                                        ColinDavies
                                        wrote on last edited by
                                        #19

                                        I thought the 1 was the international number for the USA ?? Regardz Colin J Davies

                                        Sonork ID 100.9197:Colin

                                        I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign' Rob Manderson wrote:

                                        P 1 Reply Last reply
                                        0
                                        • C ColinDavies

                                          I thought the 1 was the international number for the USA ?? Regardz Colin J Davies

                                          Sonork ID 100.9197:Colin

                                          I'm guessing the concept of a 2 hour movie showing two guys eating a meal and talking struck them as 'foreign' Rob Manderson wrote:

                                          P Offline
                                          P Offline
                                          peterchen
                                          wrote on last edited by
                                          #20

                                          Yes, it is. But if you write down (650) 999-9999 I don't know if it's the US or Phillipoa....


                                          If you go to war, you will destroy a great country a stoned greek chick to the richest man of the world
                                          [sighist] | [Agile Programming] [doxygen]

                                          C 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups