1

I wanted to format phone number which is passed as a string/number. I need to format that number to phone number like

Input to pebble template "5554781123". Output should be like "555.478.1123".

How do i format that number to phone number?

suresh
  • 341
  • 2
  • 3
  • 13

1 Answers1

0

Generally speaking, whenever no function/filter is provided out of the box, in Pebble you can define your own function or filter (you can find more here on how to extend Pebble by creating and registering functions, filters and tests). So you can wrap this solution into your own Pebble filter or function.

Community
  • 1
  • 1
JeanValjean
  • 17,172
  • 23
  • 113
  • 157