3 Replies Latest reply: Dec 27, 2006 9:50 AM by 800560 RSS

    problem in creating date object

    807607
      i want to create a date object like this,
       SimpleDateFormat format = new SimpleDateFormat("MMM-dd-yy HH:mm:ss z");
           format.setTimeZone(TimeZone.getTimeZone("PST"));
          
           Date date=null;
           try{
            date = format.parse("Dec-27-06 00:57:48 PST");
           }
           catch(ParseException e){
            System.out.println("Exception: .........");
      when i try to print this date object im getting the system current date,
      i want to create the date object from the string i provide... plzz help me this what should i do??