Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 69043 invoked from network); 11 Aug 2005 07:22:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Aug 2005 07:22:27 -0000 Received: (qmail 64062 invoked by uid 500); 11 Aug 2005 07:22:24 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 64024 invoked by uid 500); 11 Aug 2005 07:22:24 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 64011 invoked by uid 99); 11 Aug 2005 07:22:23 -0000 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=DNS_FROM_RFC_POST,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [193.190.122.60] (HELO smtp-gw.prov-liege.be) (193.190.122.60) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Aug 2005 00:22:22 -0700 Received: from mesepl.epl.prov-liege.be ([10.8.0.51]) by smtp-gw.prov-liege.be with InterScan Messaging Security Suite; Thu, 11 Aug 2005 09:21:46 +0200 Received: from [10.10.0.30] (10.10.0.30 [10.10.0.30]) by mesepl.epl.prov-liege.be with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13)id QVM52YWH; Thu, 11 Aug 2005 09:20:42 +0200 Message-ID: <42FAFC8E.20503@prov-liege.be> Date: Thu, 11 Aug 2005 09:21:50 +0200 From: =?ISO-8859-1?Q?=22Fr=E9d=E9rick=2C_Fabian=22?= User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@myfaces.apache.org Subject: [OT] Date conversion problem Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.030 X-imss-result: Passed X-imss-scores: Clean:31.87167 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi :) I'm trying to convert inpuDate passed in String to my bean with the following (in order to extract year ... for database). (ddepart is inputdate string). Date dimport = new Date(); DateFormat df = new SimpleDateFormat ("EEE MMM d hh:mm:ss z yyyy"); try{ dimport = (Date)df.parse(ddepart); }catch (Exception e){ System.out.println("!!!"+e) ; } It doesn't seem to work....Is there an error in simpledateformat ? Best regards, Fabian