I would like to compare the two dates ,one date is which the 02 aug 1921 , and the second date is present date.How to compare the old date and present date day and month .if
If you are on PHP 5.3 you can use the new DateTime class:
$oDate1 = new DateTime( $datetime1 ); $oDate2 = new DateTime( $datetime2 ); if( $oDate1->format('m-d') == $oDate2->format('m-d') echo 'yes';