JakeSilver Posted October 30, 2008 Share Posted October 30, 2008 Hi There, I have the following code; $day=$_POST['day']; $month=$_POST['month']; $year=$_POST['year']; echo $day; echo $month; echo $year; $date = mktime(0, 0, 0, $month, $day, $year); When i enter in the date = 12/12/2008 the timestamp i recieve is: 20081030113947 when i should be :1229040000 Why is it doing this? Many Thanks, Quote Link to comment https://forums.phpfreaks.com/topic/130705-unix-time-stamp/ Share on other sites More sharing options...
Mchl Posted October 30, 2008 Share Posted October 30, 2008 This code works here. Is it the actual code you use? Quote Link to comment https://forums.phpfreaks.com/topic/130705-unix-time-stamp/#findComment-678280 Share on other sites More sharing options...
ratcateme Posted October 30, 2008 Share Posted October 30, 2008 the output is kinda todays date how are you displaying it? Scott. Quote Link to comment https://forums.phpfreaks.com/topic/130705-unix-time-stamp/#findComment-678281 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.