Gossamer Forum
Quote Reply
Date format
I'm sure this must have been asked before, but I couldn't find anything on it...

<%Add_Date%> shows as Fri Sep 20 2002. I want it to show as Fredag den 20. september 2002. Any global magicians out there?

John
Quote Reply
Re: [gotze] Date format In reply to
Should be quite simple...what are the names for monday-friday, and January to December in German? (I'm assuming this is German...LOL).

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Date format In reply to
It Danish ...

Monday ..... Sunday:

Mandag, Tirsdag, Onsdag, Torsdag, Fredag, Lørdag, Søndag

Crazy

John
Quote Reply
Re: [gotze] Date format In reply to
Untested, but give this a go.... add it as a new global;

Code:
sub {

my $Add_Date = shift;
my @new_days = qw(Mandag Tirsdag Onsdag Torsdag Fredag Lørdag Søndag);
my $New_Date;

foreach $day (@new_days) {

$New_Date =~ s/Monday/$day/gi;
$New_Date =~ s/Tuesday/$day/gi;
$New_Date =~ s/Wednesday/$day/gi;
$New_Date =~ s/Thursday/$day/gi;
$New_Date =~ s/Friday/$day/gi;
$New_Date =~ s/Saturday/$day/gi;
$New_Date =~ s/Sunday/$day/gi;

}

return $New_Date;

}

I've probably got a few boo-boo's in that code, but it is 7 AM, LOL Frown

Give it a go, and let me know how it goes...If that works, we can them work on the months, and format of it all....

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [gotze] Date format In reply to
You can also change this in Setup->Date options.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Date format In reply to
Blush Gee, I should have seen that ... thanks Alex Wink