micknc Posted February 24, 2007 Share Posted February 24, 2007 I have a php that calls a spreadsheet to display. That spreadsheet is updated frequently and I need to write a code that would display a timestamp for the spreadsheet. I thought it would be easy but so far no luck. Any ideas? Thanks, Mick Quote Link to comment https://forums.phpfreaks.com/topic/39878-solved-different-kind-of-timestamp/ Share on other sites More sharing options...
mmarif4u Posted February 24, 2007 Share Posted February 24, 2007 1st store datetime in db using timestamp then try to retreive it with select DATE_FORMAT(datetime, '%d-%m-%Y H:i:s ') as formatteddate echo "<td>" . $row['formatteddate'] . "</td></font>"; Quote Link to comment https://forums.phpfreaks.com/topic/39878-solved-different-kind-of-timestamp/#findComment-192727 Share on other sites More sharing options...
micknc Posted February 24, 2007 Author Share Posted February 24, 2007 I keep looking after I posted and found: http://www.phpfreaks.com/phpmanual/page/function.filemtime.html That works well with external files. I had to modify my spreadsheet to html but it will work for the long term. Hopes this helps someone else searching. Mick Quote Link to comment https://forums.phpfreaks.com/topic/39878-solved-different-kind-of-timestamp/#findComment-192740 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.