Re: [Simple-support] DateFormat: unparseable date
Brought to you by:
niallg
|
From: Niall G. <gal...@ya...> - 2012-05-11 09:15:00
|
You need to create your own custom DateTransform to deal with your specific format, there are tonnes of examples of org.simpleframework.xml.transform.Transform implementations in the test cases. Niall --- On Fri, 11/5/12, Mihael Schmidt <msc...@sg...> wrote: From: Mihael Schmidt <msc...@sg...> Subject: [Simple-support] DateFormat: unparseable date To: sim...@li... Received: Friday, 11 May, 2012, 1:15 AM Hi, i am getting the message: java.text.ParseException: Unparseable date: "1963-04-24T00:00:00+01:00" at java.text.DateFormat.parse(DateFormat.java:354) at org.simpleframework.xml.transform.DateType$DateFormat.getDate(DateType.java:189) at org.simpleframework.xml.transform.DateType.getDate(DateType.java:112) at org.simpleframework.xml.transform.DateTransform.read(DateTransform.java:75) at org.simpleframework.xml.transform.DateTransform.read(DateTransform.java:44) at org.simpleframework.xml.transform.Transformer.read(Transformer.java:104) at org.simpleframework.xml.core.Support.read(Support.java:185) at org.simpleframework.xml.core.PrimitiveFactory.getInstance(PrimitiveFactory.java:105) at org.simpleframework.xml.core.Primitive.readTemplate(Primitive.java:231) at org.simpleframework.xml.core.Primitive.read(Primitive.java:171) How can I specify the date format? Or am I missing something? Thanx in advance Mihael -- Mihael Schmidt Software und System-Entwicklung Schulz Gebäudeservice GmbH & Co. KG Dr.-Max-Ilgner-Straße 17 32339 Espelkamp Telefon: 05772-9100-00 Telefax: 05772-9100-11 Internet: www.sgbs.de Persönlich haftende Gesellschafterin: Gebäudereinigung Joachim Schulz Verwaltungsgesellschaft mbH Geschäftsführer: Joachim Schulz, Dirk Schulz, Norbert Kosica Handelsregister Bad Oeynhausen: HRA 5902, HRB 8591 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Simple-support mailing list Sim...@li... https://lists.sourceforge.net/lists/listinfo/simple-support |