If you are using Times stamp as the data type in your table, i would recommend that you do the formatting on the page. and the function that you want to use is the date function and here is the link that explains how to use it:
function.date.php
Let me know if you have any other questions.