Calendar cal = Calendar.getInstance();
cal.setTime(date);
int hour = cal.get(Calendar.HOUR_OF_DAY);
int minutes = cal.get(Calendar.MINUTE);
if (hour == 11 && minutes >= 20 || hour == 12 && minutes <= 0)
{
//Your Logic
}
This Blog Helps to Learn Java Technology And Its Supportive Frameworks With Working Examples.
0 comments:
Post a Comment