diff --git a/lib/java/com/google/android/material/datepicker/DateFormatTextWatcher.java b/lib/java/com/google/android/material/datepicker/DateFormatTextWatcher.java index 19cbdf96edc..c64833fe8cf 100644 --- a/lib/java/com/google/android/material/datepicker/DateFormatTextWatcher.java +++ b/lib/java/com/google/android/material/datepicker/DateFormatTextWatcher.java @@ -123,7 +123,7 @@ public void afterTextChanged(@NonNull Editable s) { } char nextCharHint = formatHint.charAt(s.length()); - if (!Character.isDigit(nextCharHint)) { + if (!Character.isLetterOrDigit(nextCharHint)) { s.append(nextCharHint); } }