UPDATED: JDate method is deprecated in Joomla 3