You can convert your value using this parameter:
To add this as a condition/format during the user input you should take a look around some input validation plugin Also maybe these threads can help: