This aray echos custom atribute for 'subscription-end'. This echos a date set. Where am i going wrong?
<?php
$u = new User();
if($u->isLoggedIn()) {
$ui = UserInfo::getByID($u->getUserID());
echo $ui->getAttribute('subscription_end');
foreach ($valeus as $date) {
echo $date ('l d F Y ');
}}
?>