Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #346

Possible Date Bug

From Dr J R Stockton <reply1128@merlyn.demon.co.uk>
Newsgroups comp.lang.basic.visual.misc
Subject Possible Date Bug
Date 2011-07-13 17:48 +0100
Organization Home
Message-ID <KL+b9hCUxcHOFwaT@invalid.uk.co.demon.merlyn.invalid> (permalink)

Show all headers | View raw


If Visual Basic has the DatePart routine, and if

   W = DatePart("ww", CDate("Dec 29 2003"), vbMonday, vbFirstFourDays)

gives 53 (as it does in my Web and WSH VBscript), then the Visual Basic
version also has the bug.  I expect they share a DLL.  The error that I
see recurs three times per 28 years, and another occurs once in every
400 years.  See in <http://www.merlyn.demon.co.uk/vb-date2.htm#DP>, and
<http://msdn.microsoft.com/en-us/library/20ee97hz%28VS.80%29.aspx>, and
ISO 8601.

RSVP, here.

-- 
 (c) John Stockton, nr London, UK.    ?@merlyn.demon.co.uk     Turnpike v6.05.
 Website  <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms
 PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm
 Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.

Back to comp.lang.basic.visual.misc | Previous | NextNext in thread | Find similar


Thread

Possible Date Bug Dr J R Stockton <reply1128@merlyn.demon.co.uk> - 2011-07-13 17:48 +0100
  Re: Possible Date Bug "Nobody" <nobody@nobody.com> - 2011-07-13 22:17 -0400
    Re: Possible Date Bug Dr J R Stockton <reply1128@merlyn.demon.co.uk> - 2011-07-15 22:15 +0100
      Re: Possible Date Bug "Henning" <computer_hero@coldmail.com> - 2011-07-16 01:35 +0200
        Re: Possible Date Bug "Henning" <computer_hero@coldmail.com> - 2011-07-16 01:40 +0200
        Re: Possible Date Bug Dr J R Stockton <reply1128@merlyn.demon.co.uk> - 2011-07-17 18:39 +0100
      Re: Possible Date Bug "Nobody" <nobody@nobody.com> - 2011-07-16 03:48 -0400
        Re: Possible Date Bug Dr J R Stockton <reply1128@merlyn.demon.co.uk> - 2011-07-17 19:32 +0100

csiph-web