is there any way to check how old customer in terms of registration like one year old customer like that or we have to write code for the same
$d1 = new DateTime(date('Y-m-d',Mage::getModel('customer/customer')->load(4)->getCreatedAtTimestamp()));
$d2 = new DateTime();
echo $yeardifference = $d2->diff($d1);
but i give blank value