select « Date « JSP-Servlet Q&A





1. select date of birth in jsp    stackoverflow.com

Hello i'm try to get date of birth of a user , is there any example/jar of simple input/calendar, for date of birth in jsp to use in a form ??? or i ...

2. Populating select box with dates    coderanch.com

Hi Dilip, You need to use the caledar class to do this. Please see some code I've just written for you below. import java.util.Date; import java.util.Calendar; import java.text.SimpleDateFormat; public class DateCalculator { Date todaysDate; SimpleDateFormat myFormatter; String formattedDate; Calendar myCal; public DateCalculator() { myCal = Calendar.getInstance(); todaysDate = new Date(); myCal.add( Calendar.DATE , +1 ); for( int i = 0; i ...