jnoxx - i had the same problem early on, trying to get a tableview to the right size in IB can be a bit of guess work!! However i had tested it with just simple strings as the tableview data. Thanks for the suggestion though
Brian - after i replied i went away and found what i needed. I had missed out "setDateFormat" then after including this it still didnt work, so i got rid of my properties for "date" and "dateformatter" and made them local variables. This solved my problem and now i can display the date as expected. Thanks for the nudge.
Edit
A bit of code as jNoxx requested
Code:
NSDate *date = [[NSDate alloc] init];
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
[dateFormatter setDateFormat:@"dd-MM-yyyy"];
This is what i needed to have set up to format my date. not too much to it, and of course you can alter the order of @"dd-MM-yyyy" till your hearts content (though being English dd-mm-yyyy is the correct way)
NSDateFormatter also handles the time with @"HH:mm:ss"
I found all my info over at SO, on this post:
http://stackoverflow.com/questions/9...-in-iphone-sdk - credit where credit is due.
The code above in my original post for putting the date into a tablecell was correct, and i had to make no changes there - oh apart from not using self.dateFormatter - instead just drop the self.