Hi Techie , I have issue with date class in java when deploy into Apache server. My requirement is page navigation inwhich i want display weekly wise per page. I have Fromdate and Todate in my application. I want change the date and month while click the next and previous button from JSP. The format of Date which am getting from the appache server is : "2010-04-15" am using the following code to change the date, /*** Calendar calendar = new GregorianCalendar(2010,04,14); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); calendar.add(Calendar.MONTH,-1); // add 2month 1day calendar.add(Calendar.MONTH,2); calendar.add(Calendar.DAY_OF_MONTH,3); String date = sdf.format(calendar.getTime()); *****/ This the code where am using for change the date in my application. The Date am spliting using Java Split method which returns an array , using the array am passing as paramter to the Gregorain Calendor which i got the date from server ie, Fromdate. /********** String [] startdate = Fromdate.split("-"); Calendar calendar = new GregorianCalendar(startdate[0],startdate[1],startdate[2]); ************/ Like above, am passing the date array to the calendar constructor. I after deploy my war file am getting the Error like : // For input String : "14-" like this means apache appending some char while access the application. Any idea to resolve this issue , any other methods to resolve my navigation issue... welcome plz.. Cheeers !!!!!!!! ------------- Thangavel L Nathan.