Jump to content

Unix Time Stamp


JakeSilver

Recommended Posts

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,

 

 

Link to comment
https://forums.phpfreaks.com/topic/130705-unix-time-stamp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.