Phone Number Format

Phone Number Format

  

Hello,

Does any one know how to format the phone number in below format in mobile ?


XXX-XXX-XXXX


If user enters 1234567890 then it should format like below : 

123-456-7890