Skip to Content.
Sympa Menu

mace-opensaml-users - DatTime problem.

Subject: OpenSAML user discussion

List archive

DatTime problem.


Chronological Thread 
  • 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.



Archive powered by MHonArc 2.6.16.

Top of Page