Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Java :: how to move from one activity to another in android studio on button click 
Java :: what is final in java 
Java :: java how to override a private method 
Java :: generate a random phone number in java 
Java :: why to use serializable with java bean 
Java :: android java convert double to 2 decimal places 
Java :: even digit sum java 
Java :: loop through keys only in hashmap java 
Java :: java hashmap for loop 
Java :: localdate add months in java 
Java :: java number 
Java :: foreach map java 
Java :: murtaza jafari 
Java :: string startswith java 
Java :: java sout two dimensional array 
Java :: java suppress warnings rawtypes 
Java :: what is the use of println 
Java :: java sort list 
Java :: try catch out of bounds exception java 
Java :: how to open an activity from a fragment 
Java :: java join list as string 
Java :: binary to integer in java 
Java :: return empty array from method 
Java :: java ioexception 
Java :: android date 
Java :: Diamond pattern program in java 
Java :: in place transpose in a matrix in java 
Java :: java hashmap key exists 
Java :: java make all interfaces implement another 
Java :: java list contains object with property 
ADD CONTENT
Topic
Content
Source link
Name
3+5 =