I am developing an iOS app using Swift. I am accessing data from server and it is returning data in JSON format. In that I am having a field 'ExpiryDate' which is getting from that JSON and converted to string as follows:
var validityDate = offerElements[indexPath.row]["endDate"].stringValue
It is returning date of following format:
2015-08-24T00:00:00.000Z
I wanna convert it to MM/DD/YYYY, how can I do it ?
Your suggestions are most welcome. Thank you in advance.