Displaying the Time in AM/PM format in android

后端 未结 8 622
醉梦人生
醉梦人生 2020-12-10 13:27

I am getting the time using a time picker and displaying the time in the text view using following code...

private TimePickerDialog.OnTimeSetListener mTimeSe         


        
8条回答
  •  情话喂你
    2020-12-10 13:47

    private String getReminingTime() {
        String delegate = "hh:mm aaa";
        return (String) DateFormat.format(delegate,Calendar.getInstance().getTime());
    }
    

提交回复
热议问题