-3

I have dates in format e.g.

2014-12-09T11:10:23.0000000-08:00

How To parse this date & get 2014-12-09T11:10:23.

Please Help I have tried with many date formatters in setDateFormat: method.

Kampai
  • 22,848
  • 21
  • 95
  • 95

1 Answers1

1

setDateFormat:@"yyyy-MM-dd'T'HH:mm:ss.SSSSSSSZZZZZ"

(It's all in the spec if you bother to look.)

Hot Licks
  • 47,103
  • 17
  • 93
  • 151