I do not know anything about JS and would like to know if I have edit a field whose value came from the database using javascript? Because I saved the date of birth and the phone number of a client on the bank, and at the time of registration I saved the phone without the mask and date in the Year-Month-Day pattern.
I would like to know if you can use js to format these values from the bank so that it displays like this (99) 99999-9999 and date 99/99/9999.
Note: I just asked this question because I could not find anything on google.