Answers for "how to get the date from date without time in java"

4

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);
Posted by: Guest on June-28-2020

Code answers related to "how to get the date from date without time in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language