Re: Date and Comparisons

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46358
interpreted = N
texte = Jeff,The code below works for me as expected. If it doesn't for you then maybe you have a larger issue, like being within an [orderfile] context as John suggested...---------------------------------------------------------------------------- [text show=f]duedate=12/18/2002[/text]
Payment is due on: [duedate]
Today's date is: [date]

[SHOWIF {[duedate]}>{[date]}]ACCOUNT IS CURRENT[/SHOWIF] [SHOWIF {[duedate]}={[date]}]ACCOUNT IS DUE TODAY[/SHOWIF] [SHOWIF {[duedate]}<{[date]}]ACCOUNT IS OVER DUE[/SHOWIF]
----------------------------------------------------------------------------On Tue, 17 Dec 2002 10:19:07 -0800 Jeff Logan wrote: >How can I make this statement work correctly? > >[showif [duedate]<[date] Over Due [/showif] > >When the duedate = 02/01/03 and today's date is 12/17/02 > >Currently the code above shows the statement as ture and shows Over Due when the details are >not correct. > >Need some help, >Jeff Logan > >Personal service is #1 priority to us. > >------------------------------------------------ >InsideOut Marketing and Web Solutions >Web, Marketing and Print Design >Toll Free: 1-800-500-8401 >Phone: 360.683.5774 Fax: 360.683.5857 >Email: mailto:jeff@insideout.com >229 South Sequim Ave, Sequim, WA 98382 >http://www.insideout.com >------------------------------------------------ > >------------------------------------------------------------- >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 >Web Archive of this list is at: http://webdna.smithmicro.com/------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Date and Comparisons (Jeff Logan 2002)
  2. Re: Date and Comparisons (Glenn Busbin 2002)
  3. Re: Date and Comparisons (Matthew Bohne 2002)
  4. Re: Date and Comparisons (Rob Marquardt 2002)
  5. Re: Date and Comparisons (Dan Strong 2002)
  6. Date and Comparisons (Jeff Logan 2002)
Jeff,The code below works for me as expected. If it doesn't for you then maybe you have a larger issue, like being within an [orderfile] context as John suggested...---------------------------------------------------------------------------- [text show=f]duedate=12/18/2002[/text]
Payment is due on: [duedate]
Today's date is: [date]

[SHOWIF {[duedate]}>{[date]}]ACCOUNT IS CURRENT[/SHOWIF] [SHOWIF {[duedate]}={[date]}]ACCOUNT IS DUE TODAY[/SHOWIF] [SHOWIF {[duedate]}<{[date]}]ACCOUNT IS OVER DUE[/SHOWIF]
----------------------------------------------------------------------------On Tue, 17 Dec 2002 10:19:07 -0800 Jeff Logan wrote: >How can I make this statement work correctly? > >[showif [duedate]<[date] Over Due [/showif] > >When the duedate = 02/01/03 and today's date is 12/17/02 > >Currently the code above shows the statement as ture and shows Over Due when the details are >not correct. > >Need some help, >Jeff Logan > >Personal service is #1 priority to us. > >------------------------------------------------ >InsideOut Marketing and Web Solutions >Web, Marketing and Print Design >Toll Free: 1-800-500-8401 >Phone: 360.683.5774 Fax: 360.683.5857 >Email: mailto:jeff@insideout.com >229 South Sequim Ave, Sequim, WA 98382 >http://www.insideout.com >------------------------------------------------ > >------------------------------------------------------------- >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 >Web Archive of this list is at: http://webdna.smithmicro.com/------------------------------------------------------------ http://www.StrongGraphicDesign.com (208) 319-0137 | Toll-free p/f 877-561-1656 ------------------------------------------------------------------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Dan Strong

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:

RequiredFields template (1997) Re:FYI: Error message (1996) [WebDNA] MySQL float problems with WebDNA (2010) Nested tags count question (1997) For those of you not on the WebCatalog Beta... (1997) range searching (1998) Webmerchant/Cybercash (2000) [sendmail] sending twice... (2003) f2 download problems (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Here we go again...WebDNA - SQL- Stored Procedures (2006) [WebDNA] Case-insensitive URLs (2011) Dynamic Pop up menu? (1997) Date problems (1997) WC1.6 to WC2 date formatting (1997) Credit Card Processing (2000) Pull Down Search (2000) Re:HTTP header line is too long? (1997) Question about replacing words (1998) color (1999)