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 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 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 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" Link to comment https://forums.phpfreaks.com/topic/219798-timestamp/#findComment-1139450 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.