How to mask an EditText to show the dd/mm/yyyy date format
How can I format an EditText to follow the " dd/mm/yyyy " format the same way that we can format using a TextWatcher to mask the user input to look like "0.05€". I'm not talking about limiting the characters, or validating a date, just masking to the previous format. Juan Cortés I wrote this TextWatcher for a project, hopefully it will be helpful to someone. Note that it does not validate the date entered by the user, and you should handle that when the focus changes, since the user may not have finished entering the date. Update 25/06 Made it a wiki to see if we reach a better final code.