Skip to content Skip to sidebar Skip to footer

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"