converting datetime format

I have added a line item on one of my .tpl pages to show the date. since it is pulling the datetime stamp from the db, it shows a date like 1226325111 right now. since the info is being pulled from


how do I alter the code to only display the date formatted to ‘mm-dd-yyyy’?

thanks in advance

Sounds like you could use date().

Have you tried strtotime:

echo date('m-d-Y',strtotime({$ctoninfo.release_date}));
Sponsor our Newsletter | Privacy Policy | Terms of Service