I’m currently trying to use a Calendar object in order to get information about the current date. Specifically, I need to know the day of the week, time (h/m/s), and AM/PM. I originally intended to use a Date object, but answers on other questions suggested that using Calendar would be better. However, from looking at the API, I’m unsure about how to get the individual pieces from the Calendar object.
Share
http://docs.oracle.com/javase/7/docs/api/java/util/GregorianCalendar.html
What’s not clear about it? It’s filled with examples. Here are a few of those you named: