use Date::Manip;
#$date = &ParseDate("today");
my ($date, $l_date, $err, $t_date, $today, $now);
$today = &ParseDate('today');
$date = &UnixDate($today, "%Y-%m-%d"); # YYY-MM-DD
$now = &UnixDate("$date", "%w");
# 1 (Monday) to 7 (Sunday)
if ( $now eq "1" || $now eq "2" || $now eq "3" || $now eq "4" || $now eq "5" ) {
$l_date = $date; # this is a day we deliver...
} elsif ( $now eq "6" ) {
$t_date = &DateCalc("$date","- 1 day",\$err,2); # pick the previous day
$l_date = &UnixDate("$t_date", "%Y-%m-%d");
} elsif ( $now eq "7" ) {
$t_date = &DateCalc("$date","- 2 days",\$err,2); # pick up Friday's
$l_date = &UnixDate("$t_date", "%Y-%m-%d");
}
!>
DailyInbox
 |
DailyInbox.Com
is a free e-mail delivery service that's been
inspiring loyal
readers with wholesome,
inspirational
educational content on a daily basis since 1998. Since our first
delivery of Chicken
Soup
for the Soul we
have delivered over 2 billion stories to people all over the world. We
still prepare all the content but delivery and advertising sales is how
handled by Beliefnet at http://www.beliefnet.com.
|
|
 |
Chicken
Soup for the Soul: Home Delivery, in cooperation with Mark
Victor Hansen and Jack Canfield,
co-authors of the New
York Times best- selling Chicken Soup for
the Soul
series, brings a different inspiring story directly to your
inbox 5
days a week.
|
|
|
 |
DailyInbox you brings you features such
as Site of the Day, humor from Reader's Digest, insight from Proverbs
Plus and a daily recipe from award-winning Junior League cookbooks.
|
|
|
 |
Heloise's Hints is
brought
to you by the world's
most famous "hintologist." It sends helpful advice and
information for better living from "America's #1 Lifestyle Manager"
directly to your inbox 5 days a week.
|
|
|
 |
From the Masters daily ezine
featuring articles
and quotes from the greatest
Masters of Success including Zig Ziglar, Brian
Tracy, Les
Brown, Sheila Murray Bethel, Jim
Rohn, Charlie
"Tremendous" Jones
and dozens more time tested leaders of success ideas and principles.
|
|
|
 |
America in Uniform
features the heroes, humor and heart of the United States Military. Brought to you by DailyInbox and Reader's Digest; delivered 3 days a week.
|
|
|
Contact
information:
Gail O'Quin
Editor
cgrobins@ix.netcom.com |
|