Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

dd/mm/yyy not mm/dd/yyy


5 replies to this topic

#1 Ian-San

  • Community Member
  • 764 posts
  • Real Name:Ian Davidson
  • Gender:Male
  • Location:UK

Posted 07 February 2003, 20:43

Or making the store UK specific:

Change some bits in english.php to look like this:

setlocale(LC_TIME, 'en_GB.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%d %m %Y'); // this is used for strftime()
define('DATE_FORMAT_LONG', '%A, %d %B %Y'); // this is used for strftime()
define('DATE_FORMAT', 'd/m/Y'); // this is used for strftime()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// Return date in raw format
// $date should be in format mm/dd/yyyy
// raw date is in format YYYYMMDD, or DDMMYYYY
function tep_date_raw($date, $reverse = false) {
if ($reverse) {
return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4);
} else {
return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2);
}
}

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)
define('LANGUAGE_CURRENCY', 'GBP');

// Global entries for the <html> tag
define('HTML_PARAMS','dir="LTR" lang="en"');

// charset for web pages and emails
define('CHARSET', 'iso-8859-1');


and

define('JS_DOB', '* The 'Date of Birth' entry must be in the format: xx/xx/xxxx (day/month/year).n');

define('ENTRY_DATE_OF_BIRTH_ERROR', '&nbsp;<small><font color="#FF0000">(eg. 21/05/1970)</font></small>');

define('ENTRY_DATE_OF_BIRTH_TEXT', '&nbsp;<small>(eg. 21/05/1970) <font color="#AABBDD">required</font></small>');

Then set up your GBP currencies using Admin.
Ian-san
Flawlessnet

#2 Guyver

  • Community Member
  • 162 posts
  • Real Name:John
  • Location:UK

Posted 08 February 2003, 12:39

Not forgetting:

// text for date of birth example
define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

John

#3 Ian-San

  • Community Member
  • 764 posts
  • Real Name:Ian Davidson
  • Gender:Male
  • Location:UK

Posted 08 February 2003, 14:09

Quote

Not forgetting:

// text for date of birth example
define('DOB_FORMAT_STRING', 'dd/mm/yyyy');

John

Ooops! Lazy me .. :oops:

I cut this from an earlier post of mine without checking it... thanks.
Ian-san
Flawlessnet

#4 Gabbya

  • Community Member
  • 21 posts
  • Real Name:Gabby

Posted 10 March 2003, 23:41

i try menny time to chenge it but now you did it
tanx for the tip

#5 Gabbya

  • Community Member
  • 21 posts
  • Real Name:Gabby

Posted 10 March 2003, 23:43

i so that line when i scroll down :lol:

#6 luca75

  • Community Member
  • 97 posts
  • Real Name:luca

Posted 22 April 2003, 10:19

Thank you very much I used this tip for italian version 8)