Re: Fun with dates

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12280
interpreted = N
texte = >>I'm trying to give my users the ability to search for events which start in >>the next xxx days using pull-downs and a math context but I can't seem to >>get it to work. My code is: >> >> >> >> days. >> >>Whereas int3 is the starting date, stored in the database as mm/dd/yyyy >>format. I've never used pulldowns in combination with a math context so I'm >>probably missing something obvious but I couldn't find any examples or help >>in the docs.Hi Marty,Pull-downs with dates shouldn't be any different than any other WebDNA or HTML ...>But I might make a suggestion that you prove out your >webDNA [math] maybe with radio buttons first and get the pages working >before you try the pull downs. That is unless the WebDNA Master Ken jumps >in :). Or he might be busy in a holy war started on the webstar talk list >with Nathan from purity (weg).Hehe ... :)I think Gary has been reading too much WebSTAR-Talk. ME? In a holy war about web databases? Well, maybe ... :) Marty, your WebDNA looks exactly like mine as far as the date calculation stuff goes, except that mine is adding the 30 or 60 days while yours is subtracting it. I don't think that's what's breaking your code, but it could be. Mine works fine - but I don't have mine in a >> >> days. >> >>Whereas int3 is the starting date, stored in the database as mm/dd/yyyy >>format. I've never used pulldowns in combination with a math context so I'm >>probably missing something obvious but I couldn't find any examples or help >>in the docs.Hi Marty,Pull-downs with dates shouldn't be any different than any other WebDNA or HTML ...>But I might make a suggestion that you prove out your >webDNA [math] maybe with radio buttons first and get the pages working >before you try the pull downs. That is unless the WebDNA Master Ken jumps >in :). Or he might be busy in a holy war started on the webstar Talk List >with Nathan from purity (weg).Hehe ... :)I think Gary has been reading too much WebSTAR-Talk. ME? In a holy war about web databases? Well, maybe ... :) Marty, your WebDNA looks exactly like mine as far as the date calculation stuff goes, except that mine is adding the 30 or 60 days while yours is subtracting it. I don't think that's what's breaking your code, but it could be. Mine works fine - but I don't have mine in a (2001) WebCat2 Append problem (B14Macacgi) (1997) [ShowIf] and empty fields (1997) Yet another db manager (2004) turning every 5th line red (1998) RequiredFields notes ... (1997) Credit card types (1997) Sort Order on a page search (1997)