Problems with date math

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12915
interpreted = N
texte = While playing around with date math to make a [SHOWIF] work, I came across a bit of a problem. The dates don't add correctly. It might be a bug, it might be something in my code. Either way, I can't figure out.Here's some examples off a test page (the code is on the left, the results are on the right):[DATE]: 8/7/97 [FORMAT Days_to_Date %m/%y][MATH]{[DATE]}-{02/00/0000}[/MATH][/FORMAT]: 7/97 [FORMAT Days_to_Date %m/%y][MATH]{[DATE]}-{01/00/0000}[/MATH][/FORMAT]: 8/97 [FORMAT Days_to_Date %m/%y][MATH]{[DATE]}+{01/00/0000}[/MATH][/FORMAT]: 8/97 [FORMAT Days_to_Date %m/%y][MATH]{[DATE]}+{02/00/0000}[/MATH][/FORMAT]: 9/97 [FORMAT Days_to_Date %m/%y][MATH]{[DATE]}+{03/00/0000}[/MATH][/FORMAT]: 10/97 [FORMAT Days_to_Date %m/%y][MATH]{[DATE]}+{04/00/0000}[/MATH][/FORMAT]: 11/97I'm running the Plug-In. Any ideas?MichaelMichael Winston *By Phone!: (503)/652/8815 x341 Internet Coordinator *By e-mail!: michaelw@dhorse.com Dark Horse Comics, Inc. *By web!: http://www.dhorse.com/ Associated Messages, from the most recent to the oldest:

    
  1. Problems with date math (Michael Winston 1997)
  2. Re: Problems with date math (Olin 1997)
  3. Re: Problems with date math (Grant Hulbert 1997)
While playing around with date math to make a [showif] work, I came across a bit of a problem. The dates don't add correctly. It might be a bug, it might be something in my code. Either way, I can't figure out.Here's some examples off a test page (the code is on the left, the results are on the right):[date]: 8/7/97 [FORMAT Days_to_Date %m/%y][math]{[date]}-{02/00/0000}[/MATH][/FORMAT]: 7/97 [FORMAT Days_to_Date %m/%y][math]{[date]}-{01/00/0000}[/MATH][/FORMAT]: 8/97 [FORMAT Days_to_Date %m/%y][math]{[date]}+{01/00/0000}[/MATH][/FORMAT]: 8/97 [FORMAT Days_to_Date %m/%y][math]{[date]}+{02/00/0000}[/MATH][/FORMAT]: 9/97 [FORMAT Days_to_Date %m/%y][math]{[date]}+{03/00/0000}[/MATH][/FORMAT]: 10/97 [FORMAT Days_to_Date %m/%y][math]{[date]}+{04/00/0000}[/MATH][/FORMAT]: 11/97I'm running the Plug-In. Any ideas?MichaelMichael Winston *By Phone!: (503)/652/8815 x341 Internet Coordinator *By e-mail!: michaelw@dhorse.com Dark Horse Comics, Inc. *By web!: http://www.dhorse.com/ Michael Winston

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:

Help with Repost Data msg from form (1997) Sensations (1997) Interactive Docs (2007) [CART] (1997) truncating email part II (1997) SMSI: Forged email addresses on the talk list ... (2002) Keep away (1997) Browser Info.txt (1997) Web Catalog 2 demo (1997) WebCatalog 4.0 & Tenon iTools (2000) Postdata expired from cache (2004) WebCatalog2 Feature Feedback (1996) Bug Report, maybe (1997) [WebDNA] Mac OS Intel version? (2008) limitation found on group searching (1997) billing system (2003) Date search - yes or no (1997) Web Catalog 2 demo (1997) [WebDNA] securing passing info from php to webdna (2011) Question about the database (was Message Boards) (2003)