mace-opensaml-users - DatTime problem.
Subject: OpenSAML user discussion
List archive
- From: "Giuseppe Sarno" <>
- To: <>
- Subject: DatTime problem.
- Date: Mon, 23 Oct 2006 16:17:51 +0100
Hi,
I'm not familiar with DateTime not even with the type xs:dateTime,
I need to convert Strings in DateTime format and back to strings,
At the moment I'm doing this,
Converting a datetime to string:
String Str = new DateTime.toString() to get the string.
Later on :
DateTimeFormatter form = DateTimeFormat.fullDateTime();
DateTime dat = form.parseDateTime(Str);
Unfortunately I get an exception like this :
Exception in thread "main" java.lang.IllegalArgumentException: Invalid
format: "2006-10-23T16:07:03.034+01:00" is malformed at
"06-10-23T16:07:03.034+01:00"
at
org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.j
ava:683)
Exception a part can anyone help me find a way to use DateTime Compliant
with SAML spec and xs:dateTime ?
Many thanks.
Giuseppe.
- BaseID and Subject., Giuseppe Sarno, 10/23/2006
- Re: BaseID and Subject., Chad La Joie, 10/23/2006
- RE: BaseID and Subject., Scott Cantor, 10/23/2006
- DatTime problem., Giuseppe Sarno, 10/23/2006
- RE: BaseID and Subject., Scott Cantor, 10/23/2006
- Re: BaseID and Subject., Chad La Joie, 10/23/2006
Archive powered by MHonArc 2.6.16.