blake87 Posted September 18, 2008 Share Posted September 18, 2008 How can I convert this time date format "2008-09-03 10:59:03" to this type of time date format "01182494270", is it possible, hopefully there’s a method which can achieve this easily, could someone explain the latter format as well if possible thanks in advance Quote Link to comment Share on other sites More sharing options...
JasonLewis Posted September 18, 2008 Share Posted September 18, 2008 You mean to a Unix Timestamp? Take a look at strtotime() if that is what you are after. Quote Link to comment Share on other sites More sharing options...
blake87 Posted September 18, 2008 Author Share Posted September 18, 2008 dammn, how did I manage to miss this method, I guess i was looking in the wrong place!, thanks, I think this will help with what im trying to do ill let you know Quote Link to comment Share on other sites More sharing options...
blake87 Posted September 18, 2008 Author Share Posted September 18, 2008 Solved it worked how it should, I think I did see this method before, I just didnt follow the examples vvery well ie I was trying to use strtotime ( string $time [, int $now ] ) which didnt work for me, got it working now I just used $Ctime = strtotime ($Ctime); Works a treat thanks ProjectFear Quote Link to comment 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.