formatting dates using nsdataformatter and set date format