Untested, but give this a go.... add it as a new global;
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
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!
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
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!