If your EditText file is declared in an xml file, you should get it in code like this
EditText editText = (EditText) findViewById( R.id.your_edittext_id );
Then you can easily update it with the current date.
SimpleDateFormat sdf = new SimpleDateFormat( "yyyy/MM/dd" );
editText.setText( sdf.format( new Date() ));
source
share