i need to get the value of am/pm开发者_如何学C depending on the time set so i do this...
calendarobject.get(Calendar.AM_PM);
but this always returns 0 weather the system time is am/pm...
can any one tell me why this is happening..?
it was my mistake i was not setting the Hours_of_day value of the calendar object and hence the am_pm value was 0 always...
精彩评论