🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bc.unix
Article #68

Need help with script

#68
From: tom
Date: Thu, 21 Nov 2002 03:45
9 lines
1484 bytes
I'm trying to write a script that will return the last business day's 
date in mmddyy format.
Does anybody know of an easy way to do this.
Im having trouble accounting for Monday's are easy, I just subtract 3 
and get friday's date, but Im having trouble with the beginning of the 
month being that all months don't have the same amount of days.  any 
help would be greatly appreciated.

Tom
Technical Details
Message-ID: <3DDC58AE.6000305@optonline.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!news-east.rr.com!news01.optonline.net!news4.srv.hcvlny.cv.net.POSTED!53ab2750!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114424,6ad515f0eb81bf9,start
X-Google-Attributes: gid114424,public
X-Google-ArrivalTime: 2002-11-20 19:48:58 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-04!sn-xit-08!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!news.stealth.net!news.stealth.net!news-east.rr.com!news01.optonline.net!news4.srv.hcvlny.cv.net.POSTED!53ab2750!not-for-mail
Message-ID: <3DDC58AE.6000305@optonline.net>
From: tom <moodade@optonline.net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: bc.unix
Subject: Need help with script
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 10
Date: Thu, 21 Nov 2002 03:45:49 GMT
NNTP-Posting-Host: 24.185.70.110
X-Trace: news4.srv.hcvlny.cv.net 1037850349 24.185.70.110 (Wed, 20 Nov 2002 22:45:49 EST)
NNTP-Posting-Date: Wed, 20 Nov 2002 22:45:49 EST
Organization: Optimum Online