note 103786 rejected from function.date-parse by danbrown
| From: | danbrown@php.net | Date: | Tue, 03 May 2011 21:11:45 +0000 |
| Subject: | note 103786 rejected from function.date-parse by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179386@lists.php.net to get a copy of this message | ||
Note Submitter: ivanrv at yahoo dot com
----
help me, why this
$fec1 = strtotime('2000/2/12');
$fec2 = strtotime("2011/04/27");
$mat1=date_parse($fec1);
$mat2=date_parse($fec2);
echo $mat1['year'].'<br>';
echo $mat1["month"].'<br>';
echo $mat1["day"].'<br>';
echo '<br>';
echo $mat2["year"].'<br>';
echo $mat2["month"].'<br>';
echo $mat2["day"].'<br>';
returns this
9503
1
316
8768