AM/PM DateFormat Substitution At TimePickerDialog
I have some layout/button and onClick I get TimePickerDialog with current time (previously defined from Calendar): RelativeLayout time = (RelativeLayout) findViewById(R.id.time
Solution 1:
Use HOUR_OF_DAY in place of HOUR.
c.set(Calendar.HOUR, hours);
Replace it with:
c.set(Calendar.HOUR_OF_DAY, hours);
Post a Comment for "AM/PM DateFormat Substitution At TimePickerDialog"