Format phone number for display

I am storing phone numbers in a collection from user input with type “phone number”. I want to display the phone number with dashes in the appropriate positions (999-999-9999). Do I have to store it in the collection that way? Can I insert the dashes before I display it (within a repeater connected to a dataset) instead of storing it with dashes?

Also, what exactly is WIX using as the pattern for user input type “phone number”?

Thanks!

You can set your own pattern before submmit