If you give it 10 or 11 digits in any format, this snippet will spit it out in the correct (555) 555-5555 format.
(Thanks to tadman on StackOverflow for the bulk of this script.)
🌟 Was this page helpful? Please let me know with this quick, 3 question survey.