Re: Webcat 2.0.1 date math bug -> Crash!

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 13504
interpreted = N
texte = >Along the way to tracking this down we found that the code: > >[MATH DATE]{9/17/1997}-{00/10/00}[/MATH] > >produces the result 9/7/0000, while > >[MATH DATE]{9/17/1997}-{00/10/0000}[/MATH] > >produces the correct result 9/7/1997. > >I thought that 19 was assumed when you only used a two digit year, but if >that was so then the answer should have been 9/7/0097, right? Not >consistent.The reason you're getting 9/7/0000 when you use {00/10/00} is because the year portion of the date *must* have 4 digits in it. In other words, {00/10/00} is not an acceptable WebDNA format, but {00/10/0000} is ... :)Sincerely, Ken Grome WebDNA Solutions http://www.hui.net/dna/webdna.html Associated Messages, from the most recent to the oldest:

    
  1. Re: Webcat 2.0.1 date math bug -> Crash! (wahl@dnai.com (Bernt Wahl) 1997)
  2. Re: Webcat 2.0.1 date math bug -> Crash! (Kenneth Grome 1997)
  3. Webcat 2.0.1 date math bug -> Crash! (Dale LaFountain 1997)
>Along the way to tracking this down we found that the code: > >[MATH DATE]{9/17/1997}-{00/10/00}[/MATH] > >produces the result 9/7/0000, while > >[MATH DATE]{9/17/1997}-{00/10/0000}[/MATH] > >produces the correct result 9/7/1997. > >I thought that 19 was assumed when you only used a two digit year, but if >that was so then the answer should have been 9/7/0097, right? Not >consistent.The reason you're getting 9/7/0000 when you use {00/10/00} is because the year portion of the date *must* have 4 digits in it. In other words, {00/10/00} is not an acceptable WebDNA format, but {00/10/0000} is ... :)Sincerely, Ken Grome WebDNA Solutions http://www.hui.net/dna/webdna.html Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Search Order? (2000) numeric sorting (2000) Lost and Recovered. (1998) Permissions (2000) Only charge card when product shipped ? (1997) charging? (2001) Strange Crash (1998) HomePage Caution (1997) WebMerchant (2000) ISAPI WC6a and Windows 2003 Web Edition (2006) Quit revisited (1997) View Source from cache (1997) thankyou.tmpl (1997) Sending Mail Confirmation (2002) Memory Error message (1998) [OT] Bit of New Zealand Fun (2004) Searchable WebCat (etc.) Docs ? (1997) WebCat2 - Getting to the browser's username/password data (1997) Card clearance, problems - solutions? (1997) [WebDNA] exclusivelock (2011)