Awilum Posted November 25, 2010 Share Posted November 25, 2010 I have this date in database I must convert it to Unix Timestamp How ? 2010-11-11 09:04:44 I try this echo mktime($mydate); but its not work its return wrong Timestamp becase if I convert back it I have wrong date 2011-02-16 21:01:33 Quote Link to comment https://forums.phpfreaks.com/topic/219798-timestamp/ Share on other sites More sharing options...
trq Posted November 25, 2010 Share Posted November 25, 2010 strtotime Quote Link to comment https://forums.phpfreaks.com/topic/219798-timestamp/#findComment-1139445 Share on other sites More sharing options...
Awilum Posted November 25, 2010 Author Share Posted November 25, 2010 thanks but its wrong by one hour must 2010-11-11 09:04:44 i have 2010-11-11 10:04:44 Quote Link to comment https://forums.phpfreaks.com/topic/219798-timestamp/#findComment-1139448 Share on other sites More sharing options...
Awilum Posted November 25, 2010 Author Share Posted November 25, 2010 resolve) "-1 hour" Quote Link to comment https://forums.phpfreaks.com/topic/219798-timestamp/#findComment-1139450 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.