[ACCEPTED]-How to set the calendar in android for particular hour-android
Accepted answer
try using
calendar.set(Calendar.HOUR_OF_DAY, 4);
calendar.set(Calendar.MINUTE, 40);
calendar.set(Calendar.SECOND, 0);
0
try this too
cal.set(2013,2,7,15,42,30);
Note: Months value is MonthNumber-1
(Jan is 0
, Feb is 1
and so 1 on).
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.