Joomla get date from article and format

<?php echo JHtml::_('date',$item->created, JText::_('DATE_FORMAT_KEY')); ?>
Get date from Joomla 3.x article and format -> language override for DATE_FORMAT_KEY (e.g.: M Y)

Date formats: http://andy-carter.com/blog/php-date-formats

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.