Showif date range comparison

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24040
interpreted = N
texte = I have set up a table with the heading cells set to show dates starting with 1/1/99 and incrementing by 7 days per cell.There is a varable in each item record that is formatted as a date.I want to use the showif context to display some data in the record if the date variable is between date1 and date2 . . . but can't get the comparison to work. [math date] week1={01/01/1999}[/math] [format days_to_date %m/%d/%Y][math] week2=[week1]+7[/math][/format] (and so on) [showif [Shipdate]ge[week1]][Minutes][/showif]My above comparison is just testing one week and it doesn't work. The manual isn't clear on the way to set this up. Can it be done?Ben Weinberg ben@pca.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Showif date range comparison (Kenneth Grome 1999)
  2. Re: Showif date range comparison (es-sleestak 1999)
  3. Re: Showif date range comparison (Ben Weinberg 1999)
  4. Re: Showif date range comparison (Kenneth Grome 1999)
  5. Re: Showif date range comparison (Ben Weinberg 1999)
  6. Re: Showif date range comparison (John Jakovich 1999)
  7. Showif date range comparison (Ben Weinberg 1999)
I have set up a table with the heading cells set to show dates starting with 1/1/99 and incrementing by 7 days per cell.There is a varable in each item record that is formatted as a date.I want to use the showif context to display some data in the record if the date variable is between date1 and date2 . . . but can't get the comparison to work. [math date] week1={01/01/1999}[/math] [format days_to_date %m/%d/%Y][math] week2=[week1]+7[/math][/format] (and so on) [showif [Shipdate]ge[week1]][Minutes][/showif]My above comparison is just testing one week and it doesn't work. The manual isn't clear on the way to set this up. Can it be done?Ben Weinberg ben@pca.com Ben Weinberg

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:

unable to launch acgi in WebCat (1997) creator code (1997) Search in 2 or more catalogs (1997) [isfile] ? (1997) Re:trouble (1997) Unknown exception in WebDNA 4.5.0 (2003) Rollovers (1999) greater than or equal to (1997) Shipping Costs Not Updating When Adding Items (1997) problems with WebCat-Plugin () Emtpy Files (2006) no global [username] or [password] displayed ... (1997) ShowIf & HideIf Question? (1998) Single Link browsing (1997) Verify entry into a text field (2005) rotating thumbnails (1997) Location of Browser Info.txt file (1997) easy numfound search? (2001) Possible Bug in 2.0b15.acgi (1997) WC2.0 Memory Requirements (1997)