vendredi 27 mars 2015

NSDateFormatter string to date conversion

I need to convert



3/27/2015 5:45:00 AM


string into an NSDate object.


I tried this;



[dateFormatter setDateFormat:@"MM/dd/yyyy hh:mm:ss a"];


but it does not work.


What might be wrong that i could not figure out?


Thanks




Aucun commentaire:

Enregistrer un commentaire