NSTimestampFormatter question
NSTimestampFormatter question
- Subject: NSTimestampFormatter question
- From: Dom <email@hidden>
- Date: Thu, 26 Mar 2009 16:05:45 -0400
I know that this is deprecated in WO5.4, but I have a source timestamp
string that looks like this: 2009-03-26 15:56:50-0400
and I'm trying to create a formatter with the following pattern: %Y-%m-
%d %H:%M:%S%z
and I'm getting an Illegal arguement exception: Invalid pattern
yyyy'-'MM'-'dd' 'HH':'mm':'sszzzz when I try parsing the input string
into an NSTimestamp.
At first I tried just using the normal SimpleDateFormat class in java,
but apparently there's an issue with the "-" characters and so I
thought I'd revert to using NSTimestampFormatter to get past this issue.
Am I doing something wrong? OK, dumb question. What am I doing
wrong? ;-)
Thanks,
Dom
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden