Control numbers in the capture

Dear forum, I am in a dilemma. How to make a web textbox cell always return a number?

Consider that the system can run in other countries (local computer). With its format established in each one.

Here is an example of what I want to achieve:

Captura de Pantalla 2022-03-11 a la(s) 19.28.22

On the right side, display the numbers to be saved in the database.

i think you need 2 methods,
one from database to text
the other is text to database
at least you must know in what language the user input the data
and it arguments.
and it need also error handling around.