current date only get the year java code example
Example: java get current date without time
Date currentDate = new Date();
SimpleDateFormat dateFormat= new SimpleDateFormat("dd/MMM/yyyy");
String dateOnly = dateFormat.format(currentDate);
dateTextView.setText(dateOnly);