Search:

Type: Posts; User: Junky

Search: Search took 0.21 seconds.

  1. [SOLVED] Re: getting the end of the month for a given date

    How is the user inputting the month? As an int (11 for November)? Then you would use the set method and subtract one from the input.

    cal.set(Calendar.MONTH, userInput - 1);

    Of course you would...
  2. [SOLVED] Re: getting the end of the month for a given date

    Java uses 0 for January and 11 for December. I haven't looked at your code but is this your problem? To avoid problems like this you should use constants in the Calendar class.
Results 1 to 2 of 2