I have a Calendar object called theStartDate. I want to know the year that is in it. I have to compare the year to another year. Looking in in the Java Docs online, I don't find what I need. Okay, it's there but I don't get it.
So, this would give me the year as an int value, right?
int theYear = theStartDate.get(Calendar.YEAR);
Eclipse tells me the syntax is correct, but I just want to be sure that I am getting a value that I can use. My goal is to compare the year from theStartDate to another year.
I think you have given me what I need. Thank you verrrry much.