Re: Date Question
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 46442
interpreted = N
texte = Ah, yes. I stand corrected. Thank you. So, for the sake of the archives, the following code works as expected:------------------------------------------------------------------------[!] -- Change the duedate to whatever you want -- [/!][text show=f]duedate=12/19/2002[/text]
Payment is due on: [duedate]
Today's date is: [date]
[SHOWIF [math]{[duedate]}[/math]>[math]{[date]}[/math]]ACCOUNT IS CURRENT[/SHOWIF][SHOWIF [math]{[duedate]}[/math]=[math]{[date]}[/math]]ACCOUNT IS DUE TODAY[/SHOWIF][SHOWIF [math]{[duedate]}[/math]<[math]{[date]}[/math]]ACCOUNT IS PAST DUE[/SHOWIF]
-------------------------------------------------------------------------Dan------------------------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656------------------------------------------------------------On Thu, 19 Dec 2002 12:14:21 -0600 Gary Krockover
wrote:>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/
Associated Messages, from the most recent to the oldest:
Ah, yes. I stand corrected. Thank you. So, for the sake of the archives, the following code works as expected:------------------------------------------------------------------------[!] -- Change the duedate to whatever you want -- [/!][text show=f]duedate=12/19/2002[/text]
Payment is due on: [duedate]
Today's date is: [date]
[SHOWIF [math]{[duedate]}[/math]>[math]{[date]}[/math]]ACCOUNT IS CURRENT[/SHOWIF][SHOWIF [math]{[duedate]}[/math]=[math]{[date]}[/math]]ACCOUNT IS DUE TODAY[/SHOWIF][SHOWIF [math]{[duedate]}[/math]<[math]{[date]}[/math]]ACCOUNT IS PAST DUE[/SHOWIF]
-------------------------------------------------------------------------Dan------------------------------------------------------------http://www.StrongGraphicDesign.com(208) 319-0137 | Toll-free p/f 877-561-1656------------------------------------------------------------On Thu, 19 Dec 2002 12:14:21 -0600 Gary Krockover wrote:>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/
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:
[WebDNA] mail rejection woes (2019)
Security Issue (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Use of & in text areas.... (1998)
[WebDNA] Mailing list failure !!! (2019)
Reversed words (1997)
Searching & Hyphens (2002)
[WebDNA] 301 redirect (2010)
WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997)
Time comparison question (1998)
Update quantity (2000)
wild question (1998)
taxTotal (1997)
[Fwd: Rotating Banners ... (was LinkExchange)] (1997)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
Three new problems, maybe a fourth (1997)
Setting up WebCatalog with Retail Pro data (1996)
Signal Raised Error (Part II) (1997)
Dates and Math - Simple Subtraction (2004)
unix permissions theory applied to db security? Or...? (2000)