Re: Showif date range comparison

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 24079
interpreted = N
texte = Kenneth: Thanks for the info. I ended up with[showif [math]{[Shipdate]}[/math]>[week1]][Minutes][/showif]which works fine.Now, is there a way to make multiple comparisons without having to use multiple embedded [showif]s? Ben---------- >From: Kenneth Grome >To: WebDNA-Talk@smithmicro.com >Subject: Re: Showif date range comparison >Date: Thu, Feb 25, 1999, 10:33 AM >>>I tried your suggestion but still can't get a comparison. It may be that my >>Shipdate variable is defined as a date and the week1 variable as a number. >>How do I compare the two? >> >>[showif [Shipdate]>[week1]][Minutes][/showif] > > > Look in the HTML docs for the [math] and [format] and [getchars] contexts. > Using one or more of these contexts will allow you to re-format both the > [Shipdate] and the [week1] values -- to be represented as the number of > days since 0000. Once you've reformatted these values, they will compare > properly and give you the correct results when used in the [showif] tag ... :) > > Sincerely, > Kenneth Grome > WebDNA Consultant > > > > > > 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)
Kenneth: Thanks for the info. I ended up with[showif [math]{[Shipdate]}[/math]>[week1]][Minutes][/showif]which works fine.Now, is there a way to make multiple comparisons without having to use multiple embedded [showif]s? Ben---------- >From: Kenneth Grome >To: WebDNA-Talk@smithmicro.com >Subject: Re: Showif date range comparison >Date: Thu, Feb 25, 1999, 10:33 AM >>>I tried your suggestion but still can't get a comparison. It may be that my >>Shipdate variable is defined as a date and the week1 variable as a number. >>How do I compare the two? >> >>[showif [Shipdate]>[week1]][Minutes][/showif] > > > Look in the HTML docs for the [math] and [format] and [getchars] contexts. > Using one or more of these contexts will allow you to re-format both the > [Shipdate] and the [week1] values -- to be represented as the number of > days since 0000. Once you've reformatted these values, they will compare > properly and give you the correct results when used in the [showif] tag ... :) > > Sincerely, > Kenneth Grome > WebDNA Consultant > > > > > > 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:

re:check boxes (1997) Exclude by date - multiple (1997) off topic - dna snipets (1997) Browser Problem?!? Still getting Error message usingPOST! (1997) Am I going senile? (Price recalc based on quantity) (1997) Truncated value after space - refresh my memory.... (1997) WebCat with WebTen (1998) Something wrong with this list? (2006) Replace command help (1998) WebCatalog stalls (1998) WebCat2: Items xx to xx shown, etc. (1997) Associative lookup style? + bit more (1997) [WebDNA] WebDNA restart script (2015) CC Processing (2001) Rhapsody? (1997) displaying New products (Yikes! it's Fixed!) (1997) Error Type 3 (1999) Location of Webcat site in folder hierarchy (1997) Search/sort in URL Was: GuestBook example (1997) flushdatabases (1997)