i 'm getting the date in dateField variable after entering the code for converting the date into Simple Date Format
java.util.Date datefield2 = new java.util.Date(request.getParameter("dateField"));
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("EEEE,dd MMMM yyyy");
GregorianCalendar startDate = new GregorianCalendar(datefield2.getYear()+1900,datefield2.getMonth(),datefield2.getDay())
String reqdt=sdf.format(startDate.getTime())
i 'm not getting the exact date which i entered in dateField variable when i convert the format instead i'm getting different date
i need to compare the reqdt with the database which contains date's in Simple Date Format
how do i compare it ?
so plz help me in this regard
thank u in advance