Re: Date in IF ELSE Comparison

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59961
interpreted = N
texte = WebDna @ Inkblot Media wrote: > We do this by storing the discount and expiring together in a db. When > we check to see if the discouunt code is valid we also check to see if > the epiration date is passed todays date. SImple math date check. > How would I then do this if I had the following in my db (My test expired date) expiryDate 01/01/2004 I have the following but it seems to be ignored :- [if [math]{[date format=%d/%m/%Y]}[/math]>[math]{[expiryDate]}[/math]] [then][text]msgError=T_expired[/text][/then] I have also tried this to no avail:- [if [date format=%d/%m/%Y]>[expiryDate]] [then][text]msgError=T_expired[/text][/then] Hope someone can tell me where I am going wrong? I don't think I have quite got this date thing grasped yet... TIA Alan ------------------------------------------------------------- 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 in IF ELSE Comparison ( Alan White 2004)
  2. Re: Date in IF ELSE Comparison ( Donovan Brooke 2004)
  3. Re: Date in IF ELSE Comparison ( Alan White 2004)
  4. Re: Date in IF ELSE Comparison ( Donovan Brooke 2004)
  5. Re: Date in IF ELSE Comparison ( "Erol Guneri" 2004)
  6. Re: Date in IF ELSE Comparison ( "Erol Guneri" 2004)
  7. Re: Date in IF ELSE Comparison ( Alan White 2004)
  8. Re: Date in IF ELSE Comparison ( "WebDna @ Inkblot Media" 2004)
  9. Re: Date in IF ELSE Comparison ( Alan White 2004)
  10. Re: Date in IF ELSE Comparison ( Donovan Brooke 2004)
  11. Re: Date in IF ELSE Comparison ( Alan White 2004)
  12. Re: Date in IF ELSE Comparison ( Donovan Brooke 2004)
  13. Date in IF ELSE Comparison ( Alan White 2004)
WebDna @ Inkblot Media wrote: > We do this by storing the discount and expiring together in a db. When > we check to see if the discouunt code is valid we also check to see if > the epiration date is passed todays date. SImple math date check. > How would I then do this if I had the following in my db (My test expired date) expiryDate 01/01/2004 I have the following but it seems to be ignored :- [if [math]{[date format=%d/%m/%Y]}[/math]>[math]{[expiryDate]}[/math]] [then][text]msgError=T_expired[/text][/then] I have also tried this to no avail:- [if [date format=%d/%m/%Y]>[expiryDate]] [then][text]msgError=T_expired[/text][/then] Hope someone can tell me where I am going wrong? I don't think I have quite got this date thing grasped yet... TIA Alan ------------------------------------------------------------- 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/ Alan White

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:

Problems with ^ could be solved with [REPLACE CHARACTERS] (1997) Keep away (1997) WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998) Re:Help name our technology! (1997) 2nd WebCatalog2 Feature Request (1996) (2001) Access Denied! But why? (1997) emailer (1997) [TaxableTotal] - not working with AOL and IE (1997) PSC recommends what date format yr 2000??? (1997) using WebCat for Associate Programs? (1998) expired beta (1997) More help for discount pricing (1998) OT: Site Test (2006) update on wn searching (1997) Running _every_ page through WebCat ? (1997) Not really WebCat (1997) WebCat2b14MacPlugIn - [include] doesn't hide the search string (1997) StandardConversions.db (1998) [WebDNA] WebDNA slow processing (2011)