Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: date format

date format 16 years 8 months ago #1221

  • nates02gt
  • nates02gt's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Where can I edit the date format that shows up on the event selection page. I need to change it from all numeric to something like Tuesday, April 15 2008. Thanks.

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

date format 16 years 8 months ago #1252

  • dthadmin
  • dthadmin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 5470
  • Thank you received: 3
Hello. To make a change like this, you\'ll need to modify the dtregister.php file. The code is located in the listevents($option) function. Search the file for the line:
mosFormatDate($row->publish_up)

Pass the date format as a second argument there.

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

date format 16 years 4 months ago #2029

  • jsdesign
  • jsdesign's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Could you give examples of code for different dates. I too wish to change the date format, but I\'m a little confused as to how to change it. Specifically I would like the date format to be \"Day, dd/mm/yyyy\"

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

date format 16 years 4 months ago #2060

  • helencp
  • helencp's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 10
  • Thank you received: 0
Can you give some examples of what you mean by second argument - give the code to have the format of dd/mm/yy

Thanks

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

date format 16 years 3 months ago #2334

  • robcuesta
  • robcuesta's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
mosFormatDate($row->publish_up, \"%d-%m-%y\")

You can also make the same change in the php for the upcoming events module :)

Now, however, I do hae another problem. In the events registration list, the date wraps over to the second line:

http://solutionacademy.co.uk/site/index.php?option=com_dtregister&Itemid=37

Any ideas what I need to change to correct that? I\'ve played with several \'width\' statements, but all they seemed to do was break it!

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

date format 16 years 3 months ago #2335

  • robcuesta
  • robcuesta's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
BTW in the code I used - to separate elements of the date. You can change it to / or . or : or whatever you want

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

  • Page:
  • 1
  • 2
Time to create page: 1.123 seconds