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:

Looking for 5 to 12 shops with 3 URLs & statements (1997) OT: Google (2002) [OT] Am I an Idiot? (2004) free zip codes database (1999) Ampersand (1997) WC1.6 to WC2 date formatting -FIXED! (1997) More on the email templates (1997) E-mailer error codes (1997) Moose on a Stump (2000) [WebDNA] Basic Search (2008) Running 2 two WebCatalog.acgi's (1996) 100 + Users updating database (2002) Null Chars (1999) Help formatting search results w/ table (1997) Not carrying Zero (2000) Re:trouble (1997) [sendmail] questions... (1997) show all problem (1997) World Address Info (2003) [WebDNA] WebDNA FastCGI (2014)