<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Breaking us phone numbers into parts</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=28907026" />
  <subtitle>Breaking us phone numbers into parts</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=28907026</id>
  <updated>2026-06-06T03:58:42Z</updated>
  <dc:date>2026-06-06T03:58:42Z</dc:date>
  <entry>
    <title>RE: Breaking us phone numbers into parts</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=28915075" />
    <author>
      <name>Jack Bakker</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=28915075</id>
    <updated>2013-09-18T15:54:34Z</updated>
    <published>2013-09-18T15:54:34Z</published>
    <summary type="html">you might like this http://code.google.com/p/libphonenumber/</summary>
    <dc:creator>Jack Bakker</dc:creator>
    <dc:date>2013-09-18T15:54:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: Breaking us phone numbers into parts</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=28912191" />
    <author>
      <name>Ahamed Hasan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=28912191</id>
    <updated>2013-09-18T14:20:08Z</updated>
    <published>2013-09-18T14:20:08Z</published>
    <summary type="html">Hi Dave, &lt;br /&gt;&lt;br /&gt;I feel this is nothing to do with Liferay. You can split the string that is stored in the database as 10 digits and show them on the front-end the way you want using &lt;a href="http://docs.oracle.com/javase/6/docs/api/java/text/NumberFormat.html"&gt;NumberFormat&lt;/a&gt; utility. &lt;br /&gt;&lt;br /&gt;Yours truly, &lt;br /&gt;&lt;strong&gt;Ahamed Hasan&lt;/strong&gt;&lt;br /&gt;Author, &lt;a href="http://mpowerglobal.com/download-cookbook"&gt;Liferay Portlet Cookbook&lt;/a&gt;</summary>
    <dc:creator>Ahamed Hasan</dc:creator>
    <dc:date>2013-09-18T14:20:08Z</dc:date>
  </entry>
  <entry>
    <title>Breaking us phone numbers into parts</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=28907025" />
    <author>
      <name>Dave Weitzel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=28907025</id>
    <updated>2013-09-18T12:41:36Z</updated>
    <published>2013-09-18T12:41:36Z</published>
    <summary type="html">Is there any easy way of retrieving the three parts of a 10 digit US phone number?&lt;br /&gt;Paypal requires the phone number t be sent as three separate parts when a USA number but I cannot work out how to do this from the lIferay API and use of phoneNumberFormats.  For instance will liferay always store as (123)-456-7890 if 10 digits provided or 456-7890 if only 7?&lt;br /&gt;If so I can easily process those strings!</summary>
    <dc:creator>Dave Weitzel</dc:creator>
    <dc:date>2013-09-18T12:41:36Z</dc:date>
  </entry>
</feed>
