Display the message depend on time
- by sairam333
Hi i am getting current time using the following statements
Calendar cal = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
String b= sdf.format(cal.getTime());
Now I want to display the message as if time is before 12 Good Morning like that.........
for this how can i compare that time with integers 1 , 12,16 like that.
Thanks in advance