Change date format on Custom Attribute

Permalink
Im displaying a date from a custom attribute for each user. This returns in yy-mm-dd 00:00
How do i display this as dd-mm-yy?

Thnx in advance

<?php
$u = new User();
if($u->isLoggedIn()) {
$ui = UserInfo::getByID($u->getUserID());
echo $ui->getAttribute('subscription_end');}
?>

boltn
 
DreamMedia replied on at Permalink Reply
DreamMedia
Have a look at the documentation of the Version Online Time Schedule add-on:

http://www.concrete5.org/marketplace/addons/version-online-time-sch...

Since the add-on uses date output as well, I explain in it a couple of concrete5 configuration constants which influence the date output and how to set them. Maybe one of them will do the trick.
boltn replied on at Permalink Reply
boltn
Thnx DreamMedia, found a solution allready.
dhinesh replied on at Permalink Reply
dhinesh
May i know the solution, because i'm struck with the same. please help!
Thanks