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
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');} ?>
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.