Have a look at the documentation for class java.util.Calendar. With that class, you can do this:
Get an instance of Calendar that represents the current date and time
Subtract 6 months from the current date and time of the Calendar
Compare the date and time of the Calendar to that of a Date object
So have a look at class Calendar and try to write some code. If you have more questions, please ask them here. [ March 21, 2007: Message edited by: Jesper Young ]
i know is using calendar class. i dont know how to substract 6 month. is it that i have to get the milliseconds for 6 mth, and use the current to substract?