Article View: comp.lang.javascript
Article #20Re: Sending a CDONTS email
From: Dr John Stockton
Date: Thu, 25 Jul 2002 19:13
Date: Thu, 25 Jul 2002 19:13
22 lines
2125 bytes
2125 bytes
JRS: In article <3D3FFC49.5060804@NOSPAMatt.net>, seen in
news:comp.lang.javascript, kaeli <infinite.possibilitiesNOSPAM@NOSPAMatt
.net> posted at Thu, 25 Jul 2002 08:25:29 :-
>function ged(noDays){
> var today = new Date();
> var expr = new Date(today.getTime() + noDays*24*60*60*1000);
> return expr.toGMTString();
>}
function ged(noDays){
with (new Date()) { setDate(getDate()+noDays)
return toGMTString() }
}
is shorter and, in terms of civil days, more accurate.
--
� John Stockton, Surrey, UK. jrs@merlyn.demon.co.uk Turnpike v4.00 MIME. �
Web <URL:http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/> - see 00index.txt
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
Technical Details
Message-ID:
<xtcgXZDZ3EQ9EwoY@merlyn.demon.co.uk>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!merlyn.demon.co.uk!spamReferences:
<ahmnhu$cg$1@news5.svr.pol.co.uk> <3D3FFC49.5060804@NOSPAMatt.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 100e17,c1c4460db7d5ea6e X-Google-Attributes: gid100e17,public X-Google-Thread: fb3cb,c1c4460db7d5ea6e X-Google-Attributes: gidfb3cb,public X-Google-ArrivalTime: 2002-07-25 15:43:06 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!kibo.news.demon.net!news.demon.co.uk!demon!merlyn.demon.co.uk!spam From: Dr John Stockton <spam@merlyn.demon.co.uk> Newsgroups: comp.lang.javascript,alive.internet.lang.javascript Subject: Re: Sending a CDONTS email Date: Thu, 25 Jul 2002 20:13:29 +0100 Organization: Home, 'Surrey', UK Message-ID: <xtcgXZDZ3EQ9EwoY@merlyn.demon.co.uk> References: <ahmnhu$cg$1@news5.svr.pol.co.uk> <3D3FFC49.5060804@NOSPAMatt.net> Reply-To: Dr John Stockton <reply@merlyn.demon.co.uk> NNTP-Posting-Host: merlyn.demon.co.uk X-NNTP-Posting-Host: merlyn.demon.co.uk:158.152.233.145 X-Trace: news.demon.co.uk 1027636979 nnrp-07:16936 NO-IDENT merlyn.demon.co.uk:158.152.233.145 X-Complaints-To: abuse@demon.net MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain;charset=iso-8859-1 X-Newsreader: Turnpike (32) Version 4.00 <FaPHOaas0ellLCXbR0oIxSiVaE> Lines: 22