Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to get current date time in android

String currentDateTimeString = java.text.DateFormat.getDateTimeInstance().format(new Date());

// textView is the TextView view that should display it
textView.setText(currentDateTimeString);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #current #date #time #android
ADD COMMENT
Topic
Name
8+2 =