Keyword

Date Format

  • Radio Cristal
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 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

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 8 months ago #146669 by Krikor Boghossian
Replied by Krikor Boghossian on topic Date Format
Hello,

The module support PHP date format, php.net/manual/en/function.date.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
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
8 years 8 months ago - 8 years 8 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/
Last edit: 8 years 8 months ago by Radio Cristal.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 7 months ago #146731 by Krikor Boghossian
Replied by Krikor Boghossian on topic Date Format
Can you try with
%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
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 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.

More
8 years 7 months ago #146757 by Lefteris
Replied by Lefteris on topic Date Format
@Radio Cristal

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
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 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.

More
8 years 7 months ago #146793 by Lefteris
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
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 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
  • Radio Cristal's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 months ago #146802 by Radio Cristal
Replied by Radio Cristal on 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