Upcoming events module and menu item

More
8 years 7 months ago #57421 by marc.light
Now back to the Universal Module.

I need a different date format. I was able to get it with the following:

$db = JFactory::getDBO();
$query = "SELECT value" . " FROM l1icy_flexicontent_fields_item_relations" . " WHERE item_id = {{item->id}}" . " AND field_id = 15" ;
$db->setQuery($query);
$result_date = $db->loadResult();
echo date('j', strtotime($result_date)) . "<br />" . date('M', strtotime($result_date));

feild_id 15 is a date field.

It's all good except for the language. It's always showing in english. i tried to play with setlocale(LC_TIME,'fr_FR') with no luck.

Thanks for your help.

Please Log in or Create an account to join the conversation.

More
8 years 7 months ago #57484 by marc.light
Nothing?

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.250 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline