public void setExpiryDate ( @ IntRange ( from = 1 , to = 12 ) int month , @ IntRange ( from = 0 , to = 9999 ) int year ) { mExpiryDateEditText . setText ( DateUtils . createDateStringFromIntegerInput ( month , year ) ) ; }
Set the expiration date . Method invokes completion listener and changes focus to the CVC field if a valid date is entered .