Dom,

Are you absolutely sure you're using the percent format instead of the yyyy-MM-dd format? It looks like you switched from Simple to NSTimestamp formatters without changing the format string...

Ken

On Mar 26, 2009, at 4:05 PM, Dom wrote:

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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/kenlists%40anderhome.com

This email sent to [email protected]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to