$dateString = '2018-03-15'; $formatString = '%A, %d %B %Y'; $localizedDateString = JHTML::date($dateString, $formatString); echo $localizedDateString; // Output: Thursday, 15 March 2018
$dateString = '2018-03-15'; $formatString = 'l, jS F Y'; $localizedDateString = JHtmlDate::date($dateString, $formatString); echo $localizedDateString; // Output: Thursday, 15th March 2018In conclusion, JHTML Date is not a package library written in PHP, but rather it is part of the Joomla content management system. It is used to format date strings into localized date formats.