On Mon, 2002-02-04 at 13:40, toni baker wrote:
> $date1 = "10/12/2002";
> $date1 = date("D M j Y", strtotime($date1));
> $date2 = date("D M j Y");
> $date3 = date("D M j Y", $date1);
> print $date1."<br>";
> print $date2."<br>";
> print $date3."<br>";    
> 
> The code above gives me the following output:
> 
> Fri Oct 11 2002
> Mon Feb 4 2002
> Wed Dec 31 1969
> 
> Is the strtotime() function causing this problem?
> Thanks.

What do you get with the following?

<?php
$date = "10/12/2002";
echo date("r I", strtotime($date)) . "\n";
echo date("r I");
?>


Torben


-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to