Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android java format date time

import java.time.*;
import java.time.format.*;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
LocalDate date = LocalDate.now();
String output = formatter.format(date);
Source by developer.android.com #
 
PREVIOUS NEXT
Tagged: #android #java #format #date #time
ADD COMMENT
Topic
Name
1+7 =