1
titius
Changing date format .
  • 2007/8/29 16:29

  • titius

  • Just popping in

  • Posts: 25

  • Since: 2006/11/18


How to set date format so it shows something like. 4 AVG 07. Actually I need to separate day, month and year in different locations. But want do display month as AVG, JAN, not as numbers. tnx

2
kurak_bu
Re: Changing date format .
  • 2007/8/29 17:00

  • kurak_bu

  • Quite a regular

  • Posts: 342

  • Since: 2005/9/5 1


in which place do you want to change date format ?

3
zyspec
Re: Changing date format .
  • 2007/8/29 17:05

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


As kurak_bu indicates it really depends on where (which modules) you want to change this since sometimes it is embedded in the templates or .php files.

For XOOPS in general you need to edit the /language/your_language/global.php file:

In XOOPS 2.0.16 it's in line 164-166. You'll see:
define("_DATESTRING","Y/n/j G:i:s");
define("_MEDIUMDATESTRING","Y/n/j G:i");
define("_SHORTDATESTRING","Y/n/j");

The comments following the line indicate what you can use as valid codes in these strings.

For example replace the 'Y/n/j' in the string with 'Y/M/j' to show the 3 letters of the Month instead of the number of the month.

4
titius
Re: Changing date format .
  • 2007/8/29 18:00

  • titius

  • Just popping in

  • Posts: 25

  • Since: 2006/11/18


Want to change it in news module, and want do displaj in two DIVs first day 06 second DIV month AVG .

tnx il try it :).

Login

Who's Online

154 user(s) are online (69 user(s) are browsing Support Forums)


Members: 0


Guests: 154


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits