Answers for "function to calculate time in android"

5

android time

import java.time.*;
LocalDateTime datetime = LocalDateTime.now();
Posted by: Guest on February-05-2021
0

Get time android

Calendar c = Calendar.getInstance();
        SimpleDateFormat sdf = new SimpleDateFormat("MMM dd, yyyy HH:mm:ss a");
        String strDate = sdf.format(c.getTime());
        Log.d("TAG","DATE : " + strDate);
Posted by: Guest on February-27-2022

Code answers related to "function to calculate time in android"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language