Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 4043 invoked from network); 11 May 2004 19:25:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 11 May 2004 19:25:53 -0000 Received: (qmail 3286 invoked by uid 500); 11 May 2004 19:26:41 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 3190 invoked by uid 500); 11 May 2004 19:26:40 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 3148 invoked by uid 98); 11 May 2004 19:26:39 -0000 Received: from Joel.Yu.Ctr@asamra.hoffman.army.mil by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(128.190.160.20):. Processed in 0.104254 secs); 11 May 2004 19:26:39 -0000 X-Qmail-Scanner-Mail-From: Joel.Yu.Ctr@asamra.hoffman.army.mil via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(128.190.160.20):. Processed in 0.104254 secs) Received: from unknown (HELO cpsasahf.hoffman.army.mil) (128.190.160.20) by hermes.apache.org with SMTP; 11 May 2004 19:26:38 -0000 Received: by cpsasahf with Internet Mail Service (5.5.2657.72) id ; Tue, 11 May 2004 15:22:46 -0400 Message-ID: From: "Yu, Joel, Contractor" To: "'axis-dev@ws.apache.org'" Subject: xsd:dateTime parse Date: Tue, 11 May 2004 15:27:03 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The following is code generated by wsdl2java for xsd:dateTime type. It is unalbe to parse date of xsd:dateTime format. I am getting a java.text.ParseException. I am using axis 1.1 and jdk 1.4. How can I change the following code so it will parse xsd:dateTime format. thanks public DateTimeType(java.lang.String value) { java.util.Calendar cal = java.util.Calendar.getInstance(); try { java.util.Date dt = (java.text.DateFormat.getDateTimeInstance()).parse(value); <-- throws exception cal.setTime(dt); this.value = cal; } catch (java.text.ParseException e){ throw new java.lang.RuntimeException(e.toString()); } }