1, How do you get date one to show the current date.
2. how do you get date1 to show the date 30 days from date,
3, the dates must be generated in some way, not just typed in from the keyboard.
Check out JavaDatesFaq. It has useful information. Also for showing Date 30 days ahead or 30 days behind- You can explore the Calendar class. Do check out its add() method