/ Published in: PHP
This is used to display the date the item was created, within the item page.
DATE_FORMAT_LC2 can be changed to suit allowable Joomla variants.
DATE_FORMAT_LC2 can be changed to suit allowable Joomla variants.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php if($this->item->params->get('itemDateCreated')): ?> <!-- Date created --> <span class="itemDateCreated"> <?php echo JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC2')); ?> </span> <?php endif; ?>