I am working on an application, where I have to show time in hours and half an hour, so my question is, is this possible to restrict the date time picker dialog to show only hours and half an hour time.
Asked
Active
Viewed 268 times
0
-
There are many more similar posts other than attached 2. – Rohit5k2 Jan 20 '20 at 06:42
-
you can simply check with minutes Calendar mcurrentTime = Calendar.getInstance(); int minute = mcurrentTime.get(Calendar.MINUTE); if minutes egual to 00 or 30 then show picker else not. – Avinash Jan 20 '20 at 07:06