Re: Date Question

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 46441
interpreted = N
texte = I think the problem is if the duedate is the following year, it breaks. Try this (and note that in test case #2, I didn't even need the curly brackets):[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]
---------------------------------------------------------------------------- [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]
---------------------------------------------------------------------------- [text show=f]duedate=12/18/2003[/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]
----------------------------------------------------------------------------GK| Hmmmm...this works fine for me: | -------------------------------------------------------------------------- -- | [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] |
| -------------------------------------------------------------------------- -- | ?? | | -Dan | ------------------------------------------------------------ | http://www.StrongGraphicDesign.com | (208) 319-0137 | Toll-free p/f 877-561-1656 | ------------------------------------------------------------ | | | | | On Thu, 19 Dec 2002 14:52:04 | Kenneth Grome wrote: | >>Have you tried John's suggestion with the curly brackets? | >>[showif {[duedate]}<{[date]}] PAST DUE -> [/showif] | > | >This will not work because curly brackets don't do anything unless they are inside a math | >context. Try this instead: | > | >[showif [math]{[duedate]}[/math]<[math]{[date]}[/math]] PAST DUE -> [/showif] | > | > | >Sincerely, | >Kenneth Grome | > | >--------------------------------------------------- | >WebDNA Professional Training and Development Center | >175 J. Llorente Street +63 (32) 255-6921 | >Cebu City, Cebu 6000 kengrome@webdna.net | >Philippines http://www.webdna.net | >--------------------------------------------------- | > | >------------------------------------------------------------- | >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/ | | ------------------------------------------------------------- | 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/ ------------------------------------------------------------- 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: [WebDNA] Quick Date Question (Govinda 2008)
  2. Re: [WebDNA] Quick Date Question (Govinda 2008)
  3. Re: [WebDNA] Quick Date Question (Steve Craig 2008)
  4. Re: [WebDNA] Quick Date Question (Gil Poulsen 2008)
  5. [WebDNA] Quick Date Question (Steve Craig 2008)
  6. Re: Silly date question ( Donovan Brooke 2006)
  7. Re: Silly date question ( Donovan Brooke 2006)
  8. Re: Silly date question ( Steve Craig 2006)
  9. Re: Silly date question ( Steve Craig 2006)
  10. Re: Silly date question ( Donovan Brooke 2006)
  11. Re: Silly date question ( Gary Krockover 2006)
  12. Re: Silly date question ( Donovan Brooke 2006)
  13. Silly date question ( Steve Craig 2006)
  14. Re: Date question ( Donovan Brooke 2003)
  15. Re: Date question ( John Peacock 2003)
  16. Re: Date question ( Donovan Brooke 2003)
  17. Re: Date question ( Donovan Brooke 2003)
  18. Re: Date question ( Alex McCombie 2003)
  19. Re: Date question ( andy mowrey 2003)
  20. Re: Date question ( John Hill 2003)
  21. Date question ( andy mowrey 2003)
  22. Re: Date Question (Dan Strong 2002)
  23. Re: Date Question (Gary Krockover 2002)
  24. Re: Date Question (Dan Strong 2002)
  25. Re: Date Question (Kenneth Grome 2002)
  26. Re: Date Question (Jeff Logan 2002)
  27. Re: Date Question (Donovan 2002)
  28. Re: Date Question (Donovan 2002)
  29. Re: Date Question (Jeff Logan 2002)
  30. Re: Date Question (Chris List Recipient 2002)
  31. Re: Date Question (Jeff Logan 2002)
  32. Re: Date Question (Dan Strong 2002)
  33. Re: Date Question (Jeff Logan 2002)
  34. Re: Date Question (Gary Krockover 2002)
  35. Re: Date Question (Jeff Logan 2002)
  36. Re: Date Question (John Peacock 2002)
  37. Re: Date Question (Dan Strong 2002)
  38. Re: Date Question (Jeff Logan 2002)
  39. Re: Date Question (Dan Strong 2002)
  40. Date Question (Jeff Logan 2002)
I think the problem is if the duedate is the following year, it breaks. Try this (and note that in test case #2, I didn't even need the curly brackets):[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]
---------------------------------------------------------------------------- [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]
---------------------------------------------------------------------------- [text show=f]duedate=12/18/2003[/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]
----------------------------------------------------------------------------GK| Hmmmm...this works fine for me: | -------------------------------------------------------------------------- -- | [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] |
| -------------------------------------------------------------------------- -- | ?? | | -Dan | ------------------------------------------------------------ | http://www.StrongGraphicDesign.com | (208) 319-0137 | Toll-free p/f 877-561-1656 | ------------------------------------------------------------ | | | | | On Thu, 19 Dec 2002 14:52:04 | Kenneth Grome wrote: | >>Have you tried John's suggestion with the curly brackets? | >>[showif {[duedate]}<{[date]}] PAST DUE -> [/showif] | > | >This will not work because curly brackets don't do anything unless they are inside a math | >context. Try this instead: | > | >[showif [math]{[duedate]}[/math]<[math]{[date]}[/math]] PAST DUE -> [/showif] | > | > | >Sincerely, | >Kenneth Grome | > | >--------------------------------------------------- | >WebDNA Professional Training and Development Center | >175 J. Llorente Street +63 (32) 255-6921 | >Cebu City, Cebu 6000 kengrome@webdna.net | >Philippines http://www.webdna.net | >--------------------------------------------------- | > | >------------------------------------------------------------- | >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/ | | ------------------------------------------------------------- | 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/ ------------------------------------------------------------- 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/ Gary Krockover

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:

[applescript] (1999) Sendmail & Time Issue (2001) ListFiles Bug (1998) Wanted: More Math Functions (or, Can You Solve This?) (1997) Country & Ship-to address & other fields ? (1997) triggering an update of two frames (1998) Stinkin' [Referrer] (1998) Strange intermittent WebDNA problems (2008) DataBaseHelper Flawed (1997) Bad Code Contest (2007) SERIAL NUMBER PROBLEM *AGAIN*!!! (1998) japanese characters (1997) Max DB Size (2004) t or f (1997) [LOOKUP] (1997) Root Folder problems cont. (1998) Version 4? (2000) Help Encrypt/Decrypt eMail (2003) BR (1997) unable to launch acgi in WebCat (1997)