Re: [SHOWIF] PROBLEM

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 27260
interpreted = N
texte = and Unix Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bitNatalie M. Rezonoff @ natasha@shani.net wrote:> sku title enddate > 1 product1 02/02/2000 > 2 product2 01/08/2001 > > I am trying to do the following: > > [showif [date]<[enddate]] [title] [/showif] > > this does not work because the showif treats the date as number and not as > date, therefore, > 01/08/2001 is smaller than 02/02/2000. > > Is there a solution for that?Yes, store dates ALWAYS as numbers in your .db files. Then you can easily compare with showif/hideif and make any calculations.To store them as numbers you can use this:[math show=f]numberdate={[date]}[/math]and to get them back as date formated use this:[format days_to_date %m/%d/%Y][numberdate][/format]Hope this helps.Sincerely, Nitai-- E-Commerce Solutions for Unix, NT and Mac Eyework - http://eyework.ch/EMail: Info@eyework.ch Tel: +41 (0)52 / 654 15 55, Fax: +41 (0)52 / 654 15 59 ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] [showif] problem (Gil Poulsen 2009)
  2. [WebDNA] [showif] problem (Lawrence 2009)
  3. Re: [SHOWIF] PROBLEM (WebDNA Support 2000)
  4. [SHOWIF] PROBLEM (Natalie M. Rezonoff 2000)
  5. Re: [SHOWIF] PROBLEM (Nitai 2000)
  6. Re: [showif] problem (Kenneth Grome 1999)
  7. Re: [showif] problem (Gil Poulsen 1999)
  8. [showif] problem (Howard Wolosky 1999)
and Unix Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bitNatalie M. Rezonoff @ natasha@shani.net wrote:> sku title enddate > 1 product1 02/02/2000 > 2 product2 01/08/2001 > > I am trying to do the following: > > [showif [date]<[enddate]] [title] [/showif] > > this does not work because the showif treats the date as number and not as > date, therefore, > 01/08/2001 is smaller than 02/02/2000. > > Is there a solution for that?Yes, store dates ALWAYS as numbers in your .db files. Then you can easily compare with showif/hideif and make any calculations.To store them as numbers you can use this:[math show=f]numberdate={[date]}[/math]and to get them back as date formated use this:[format days_to_date %m/%d/%Y][numberdate][/format]Hope this helps.Sincerely, Nitai-- E-Commerce Solutions for Unix, NT and Mac Eyework - http://eyework.ch/EMail: Info@eyework.ch Tel: +41 (0)52 / 654 15 55, Fax: +41 (0)52 / 654 15 59 ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Nitai

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:

NT error logs (1997) Cart Creation (1998) Setting up shop (1997) Email encryption (1998) flushing databases (2003) founditems and setheader (2000) Mauthonly followed by mauthcapture (2002) Help!!!! (1999) Help with (2003) MasterCounter Help (1998) [delete] problem (1997) [WebDNA] Parsing XML...again... (2010) RE: Help name our technology! (1997) Passing along data (2000) Re:Navigator 4.01 (1997) How does WebCatalog search the database? (1997) form data submission gets truncated (1997) Date Sorting (1997) Answer: WebDelivery downloads alias, not original ? (1997) Multiple Pulldowns (1997)