Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
 
PREVIOUS NEXT
Tagged: #java #current #date #time
ADD COMMENT
Topic
Name
2+4 =