"yyyy-MM-dd HH:mm:ss Z"
does the pod support "yyyy-MM-dd HH:mm:ss Z" or do i have to converted it and use the pod
I don't know why you should have any problem with this format.
I must be doing something wrong.
this return nil let dates = "2017-01-27 19:07:25 +0000" print(Date(string: dates, format: .fullDate))
Strange, it should just work.
The library doesn't do nothing but caching and reusing DateFormatter instances. Can you try it with a plain DateFormatter and see if it works? maybe you are defining the format wrong.
this way work. :( other way would of been quicker but i will just use an extension
let date = "2017-01-27 19:07:25 +0000"
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd HH:mm:ss Z"
let datefrom = formatter.date(from: date)
let convertedDate = datefrom.string(dateStyle: .short, timeStyle: .none)
Can I see how you declare .fullDate ??