I am trying to convert @"3/31' 0"
string to date using NSDateFormatter
, but none of the formats I have tried can't convert this string to NSDate
.
I have try different combinations of M, MM, D, DD, Y, YY, YYY, but no luck.
Can someone, please, point me to correct date format.
Edit: correct format for this string should be "day/month' year"
but I cant express this using NSDateFormatter
format specification.
Thanks
Its not possible to convert @"3/31' 0" string to date, at least using Georgian calendar, because there is no 0 year in Georgian calendar - Apple docs .
Ie @"3/31' 0" is an invalid date string.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.