cool89
10-21-2009, 07:05 PM
I have the following php statement in my view.ctp (cakephp)
<?php echo date("m/d/Y",strtotime($user['User']['tenure_date']));?></td>
But what I need to do is take this statement and get a difference of this date with current date and get the answer to be displayed in years and months for example 20years or 20years and 4 months in my view.ctp
PLEASE GUIDE ME IF YOU GUYS CAN
<?php echo date("m/d/Y",strtotime($user['User']['tenure_date']));?></td>
But what I need to do is take this statement and get a difference of this date with current date and get the answer to be displayed in years and months for example 20years or 20years and 4 months in my view.ctp
PLEASE GUIDE ME IF YOU GUYS CAN