Use formatters, but make sure they work.
These are often very problematic when using a screen reader. If you absolutly need to mask an input, Filament Group has a good approach: https://www.filamentgroup.c…