Hi,
I am writing a validation class in Java which validates the input data from a JSP form. As far as the date validation is concern I have a bit of a trouble. According to this application the system must only accept dates till the end of the year from the current date.So can you please help me how to do this using the calender class. I am new to Java as well.

Cheers

Oshadee

make sure what you want first.
Your topic and actual question don't match.

The one requires you to create a two Calendars, change one, and return its value, the other to just take one field from the Calendar and compare that to the same field from another Calendar.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.