Question: nsdateformatter' has been renamed to 'dateformatter'?
Answer: DateFormatter is same as NSDateFormatter , just the name is changed. You can use DateFormatter in same way you have been using NSDateFormatter .