I have achieved time formate using AM-PM by below code
Date date = new SimpleDateFormat("h:m").parse((mHour+":"+mMinute));
String newString = new SimpleDateFormat("hh:mm a").format(date);
System.out.println("Time - "+newString);
but in above code there is one problem
If I set time 12:00 AM in TimePickerDialog
it will display 12:00 AM but if I change time in TimePickerDialog
to 12:00 PM it will still display 12:00 AM