matthewbauer Posted May 13, 2009 Share Posted May 13, 2009 How do you convert April 30, 2009 to 1241049600? I have a variable date that I need to be able to convert to epoch in php. I've tried mktime, but it does not seem to be working properly, when I do mktime($day=$day,$month=$month,$year=$year) it does not seem to turn out properly. Though it is possible that there is an error in another section of my code. Quote Link to comment https://forums.phpfreaks.com/topic/157914-solved-converting-april-30-2009-to-1241049600/ Share on other sites More sharing options...
Ken2k7 Posted May 13, 2009 Share Posted May 13, 2009 strtotime Quote Link to comment https://forums.phpfreaks.com/topic/157914-solved-converting-april-30-2009-to-1241049600/#findComment-833001 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.