I am receiving all zeros as a date string for some objects from the server (0000-00-00 00:00:00), So as I am trying to convert this string to NSDate
object using NSDateFormatter
, it is returning nil.
dateformat style: @"yyyy-MM-dd HH:mm:ss
"
Could anybody help me on how to get this done?