Gossamer Forum
Home : Products : Gossamer Links : Discussions :

print next 14 days excpet Sunday

Quote Reply
print next 14 days excpet Sunday
I wonder if any simple way to print next 14 days excpet sunday by gt date module.

any one here has make such modificaion before?

Thanks
Quote Reply
Re: [courierb] print next 14 days excpet Sunday In reply to
Hi,

Easy <G> (you would need to use something to filter out the sundays though ;))

Code:
my $today = GT::Date::date_get();
my @dates;
for (my $i = 0; $i <= 14; $i++) {
push @dates, GT::Date::date_add($today,$i);
}

Hope that helps.

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!