Keyword

Date Format

  • Radio Cristal
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
4 years 1 week ago #146642 by Radio Cristal
Radio Cristal created the topic: Date Format
Hi, i would like to know what is the date format to use in the module.
Thank you for your help

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

More
4 years 1 week ago #146669 by Krikor Boghossian
Krikor Boghossian replied the topic: Date Format
Hello,

The module support PHP date format, php.net/manual/en/function.date.php

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Radio Cristal
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
4 years 6 days ago - 4 years 6 days ago #146704 by Radio Cristal
Radio Cristal replied the 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/
Last edit: 4 years 6 days ago by Radio Cristal.

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

More
4 years 5 days ago #146731 by Krikor Boghossian
Krikor Boghossian replied the topic: Date Format
Can you try with
%l %d %F etc.. ?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Radio Cristal
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
4 years 5 days ago #146736 by Radio Cristal
Radio Cristal replied the 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.

More
4 years 4 days ago #146757 by Lefteris
Lefteris replied the topic: Date Format
@Radio Cristal

You can see the available formatting variables at php.net/manual/en/function.strftime.php .

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Radio Cristal
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
4 years 4 days ago #146763 by Radio Cristal
Radio Cristal replied the 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.

More
4 years 3 days ago #146793 by Lefteris
Lefteris replied the 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')); ?>

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

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

  • Radio Cristal
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
4 years 3 days ago #146801 by Radio Cristal
Radio Cristal replied the topic: Date Format
Where do i have to paste this script ?

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

  • Radio Cristal
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
4 years 3 days ago #146802 by Radio Cristal
Radio Cristal replied the topic: Date Format
So i use this code
<?php
setlocale(LC_TIME, "C");
echo strftime("%A");
setlocale(LC_TIME, "fr_FR");
echo strftime(" in French %A and");
?>
And i have french date... But french caracters doesn't display correctly...

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


Powered by Kunena Forum