...

View Full Version : Date Difference



cool89
10-21-2009, 08: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

Phil Jackson
10-21-2009, 11:35 PM
This is a question my friend, wrong section.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum