Re: Date in IF ELSE Comparison

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59966
interpreted = N
texte = Ahhhh... your final point is a biggie as I have contained this process within an orderfile so I can set header40, maybe I should implement the orderfile only if the code validates.... Cheers Alan onovan Brooke wrote: > Alan, what are the values comming through as? > Do something like this instead: > > [math]epochnow=[math]{[date format=%d/%m/%Y]}[/math][/math] > [math]epochexpire=[math]{[expiryDate]}[/math][/math] > > [if epochnow>epochexpire] > [then][text]msgError=T_expired[/text][/then] > > [msgError] > > Then you will see all of your values (then just add "show=F" to your set > math vars when its working. > > Also make sure that the date is not inside an orderfile context. > > Donovan > ------------------------------------------------------------- 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)
Ahhhh... your final point is a biggie as I have contained this process within an orderfile so I can set header40, maybe I should implement the orderfile only if the code validates.... Cheers Alan onovan Brooke wrote: > Alan, what are the values comming through as? > Do something like this instead: > > [math]epochnow=[math]{[date format=%d/%m/%Y]}[/math][/math] > [math]epochexpire=[math]{[expiryDate]}[/math][/math] > > [if epochnow>epochexpire] > [then][text]msgError=T_expired[/text][/then] > > [msgError] > > Then you will see all of your values (then just add "show=F" to your set > math vars when its working. > > Also make sure that the date is not inside an orderfile context. > > Donovan > ------------------------------------------------------------- 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:

.txt file (2000) WebCat2b13MacPlugIn - More limits on [include] (1997) Hidden or Forbidden? (1998) WebCat2 - [format thousands] (1997) WebDNA v6 & MySQL (2008) I'm new be kind (1997) Navigator Parsing (1997) Creating main- and sub-category search (1997) Generating unique SKU from [cart] - FIXED! (1997) Same Cart # Problem... (2000) [OT] ssh user@domain.com (2004) Dates (1998) Sorting Numbers (1997) New public beta available (1997) Server Creation - vendors (2005) is this how [break] works? (1998) WCS Newbie question (1997) Possible Bug in 2.0b15.acgi (1997) A Sensible Suggestion. Was: Major problem (1999) users change an email address (2002)