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


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates