COMMUNITY FORUM
Date Format
- Radio Cristal
- Topic Author
- Offline
- New Member
Less
More
9 years 3 months ago #146642
by Radio Cristal
Date Format was created by Radio Cristal
Hi, i would like to know what is the date format to use in the module.
Thank you for your help
Thank you for your help
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 3 months ago #146669
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Date Format
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Radio Cristal
- Topic Author
- Offline
- New Member
9 years 3 months ago - 9 years 3 months ago #146704
by Radio Cristal
Replied by Radio Cristal on topic Date Format
I'm sorry, it doesn't work... i try with 'l d F Y - H:i' but in frontend it's written 'l d F Y - H:i'...
look at there s411229504.onlinehome.fr/espace-cristal/website/lighthouse_j3_quickstart/
look at there s411229504.onlinehome.fr/espace-cristal/website/lighthouse_j3_quickstart/
Last edit: 9 years 3 months ago by Radio Cristal.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 3 months ago #146731
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Date Format
Can you try with
%l %d %F etc.. ?
%l %d %F etc.. ?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Radio Cristal
- Topic Author
- Offline
- New Member
9 years 3 months ago #146736
by Radio Cristal
Replied by Radio Cristal on topic Date Format
Done, and it's very strange : "6 19 2015-08-19 2015 - 18:%i" for this code "%l %d %F %Y - %H:%i"
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
9 years 3 months ago #146757
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Date Format
@Radio Cristal
You can see the available formatting variables at php.net/manual/en/function.strftime.php .
You can see the available formatting variables at php.net/manual/en/function.strftime.php .
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Radio Cristal
- Topic Author
- Offline
- New Member
9 years 3 months ago #146763
by Radio Cristal
Replied by Radio Cristal on topic Date Format
Thank you it works !!! :D My last question, how to have the date in french ?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
9 years 3 months ago #146793
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Date Format
Set the format to :%Y-%m-%d %H:%M:%S and then use a JText variable as you would do with any date in Joomla!:
<?php echo JHtml::_('date', $feed->itemDate, JText::_('DATE_FORMAT_LC3')); ?>
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Radio Cristal
- Topic Author
- Offline
- New Member
9 years 3 months ago #146801
by Radio Cristal
Replied by Radio Cristal on topic Date Format
Where do i have to paste this script ?
Please Log in or Create an account to join the conversation.
- Radio Cristal
- Topic Author
- Offline
- New Member
9 years 3 months ago #146802
by Radio Cristal
Replied by Radio Cristal on topic Date Format
So i use this codeAnd i have french date... But french caracters doesn't display correctly...
<?php
setlocale(LC_TIME, "C");
echo strftime("%A");
setlocale(LC_TIME, "fr_FR");
echo strftime(" in French %A and");
?>
Please Log in or Create an account to join the conversation.