Oct 20, 2005 #1 Rekcor Programmer Feb 15, 2005 48 NL The following code is causing me a headache. I want to put: "12-25-2004 0:0:0" on the screen. But the following code: Code: echo date('d-m-Y H:m:s', mktime(0,0,0,12,25,1978)); returns: Code: 25-Dec-1978 12:12:00 What is happening?
The following code is causing me a headache. I want to put: "12-25-2004 0:0:0" on the screen. But the following code: Code: echo date('d-m-Y H:m:s', mktime(0,0,0,12,25,1978)); returns: Code: 25-Dec-1978 12:12:00 What is happening?
Oct 20, 2005 #2 KarveR MIS Dec 14, 1999 2,065 GB since when was 25 a valid month ? ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat. Upvote 0 Downvote
since when was 25 a valid month ? ______________________________________________________________________ There's no present like the time, they say. - Henry's Cat.
Oct 20, 2005 1 #3 lgarner IS-IT--Management Jan 26, 2002 2,348 US You seem to be mixing your results. To create your results, I had to change your code to: echo date('d-M-Y m:m:s', mktime(0,0,0,12,25,1978)); mktime() is working fine; check the syntax for the date() function. http://us2.php.net/manual/en/function.date.php Upvote 0 Downvote
You seem to be mixing your results. To create your results, I had to change your code to: echo date('d-M-Y m:m:s', mktime(0,0,0,12,25,1978)); mktime() is working fine; check the syntax for the date() function. http://us2.php.net/manual/en/function.date.php
Oct 21, 2005 Thread starter #4 Rekcor Programmer Feb 15, 2005 48 NL Thanx, the correct syntax is: Code: echo date('d-M-Y H:i:s', mktime(0,0,0,12,25,1978)); //25-Dec-1978 00:00:00 Upvote 0 Downvote
Thanx, the correct syntax is: Code: echo date('d-M-Y H:i:s', mktime(0,0,0,12,25,1978)); //25-Dec-1978 00:00:00