Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android java format date time

import java.time.*;
import java.time.format.*;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("HH:mm:ss");
LocalTime time = LocalTime.now();
String output = formatter.format(time);
Source by developer.android.com #
 
PREVIOUS NEXT
Tagged: #android #java #format #date #time
ADD COMMENT
Topic
Name
8+9 =