Display INT timestamp from database as readable format in view

In my model I am using time() and as an integer to save the time and date…

How do I display this value on a page in a readable format?

So instead of 1278754137 being shown its an actual date and time



I actually found it myself too