[WebDNA] Re: Math Date issue

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102057
interpreted = N
texte = You're quite welcome! Although Gary's solution is=20 ultimately a shorter, cleaner solution. Terry THANK YOU, TERRY!!! I only subscribe to digest mode (how do I switch=20 to feed mode, by the way?), so I just saw your=20 answer. It works perfectly now! Knew it had to be=20 something stupid. I mean, not that you'd have to=20 be stupid to figure it out -- that would be=20 insulting the guy who helped me. Aww, crap. You=20 know what I meant. :-) Gary, thank you, too for your simple solution. If=20 Terry's hadn't worked, you were in the pipeline.=20 Good, brief code. ----- Patrick Junkroski =46rom:=A0Terry Wilson <terry@terryfic.com> Date:=A0February 19, 2009 1:38:12 PM EST To:=A0<talk@webdna.us> Subject:=A0Re: [WebDNA] Math Date issue Reply-To:=A0<talk@webdna.us> should be this: &group1type=3Ddate&group2type=3Ddate Terry Hi - I'm using WebDNA Commerce Edition 6.0 on a G5 Xserve under 10.3.9. I have code that is supposed to search a database=20 and show any advertiser's status (called=20 linkexpires, in this example) falls between=20 today's date and a week from now. It generally=20 seems to work, but every once in a while I have=20 an issue like this one. Here's my code (minus some HTML to make it cleaner): The following companies have LINKS =A0whose status=20 will expire between [date] and [math=20 date]{[date]}+{00/07/0000}[/math] [search=20 db=3DTheSeniorGuide.db&linkexpirestype=3Ddate&group1field=3Dlinkexpires&grou= p2field=3Dlinkexpires&group1fieldtype=3Ddate&group2fieldtype=3Ddate&legroup1= datarq=3D[math=20 date]{[date]}+{00/07/0000}[/math]&gegroup2datarq=3D[date]&ascompanynamesort= =3D1] <= th>Expiration [founditems][hideif [linkexpires]=3D] [/hideif][/founditems] [/search] Here's the output: The following companies have=A0LINKS=A0whose status=20 will expire between 02/19/2009 and 02/26/2009 CompanyAddressCityStateZipExpirationProvince=20 Place of DePaul6403 Granby=20 StNorfolkVA2350502/25/2010Province Place of=20 MaryviewOne Bon Secours=20 WayPortsmouthVA2370302/25/2010 If the output didn't copy properly, it shows two listings who expire 02/25/2= 010 The day and month of the expiration is true, but=20 the year is wrong. This advertiser shouldn't show=20 up here until one year from now. Where's my coding error? Anyone? =A0Anyone? =A0Bueller? TIA ----- Patrick Junkroski -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Associated Messages, from the most recent to the oldest:

CompanyAddressCityStateZip
[companyname][streetaddress][city]= [state][zip][linkexpires]
    
  1. Re: [WebDNA] math date issues? (Stuart Tremain 2013)
  2. Re: [WebDNA] math date issues? (Donovan Brooke 2013)
  3. Re: [WebDNA] math date issues? (Donovan Brooke 2013)
  4. [WebDNA] math date issues? ("Brian B. Burton" 2013)
  5. Re: [WebDNA] Math Date issue (Gary Krockover 2009)
  6. Re: [WebDNA] Math Date issue (Terry Wilson 2009)
  7. [WebDNA] Math Date issue (Patrick Junkroski 2009)
You're quite welcome! Although Gary's solution is=20 ultimately a shorter, cleaner solution. Terry THANK YOU, TERRY!!! I only subscribe to digest mode (how do I switch=20 to feed mode, by the way?), so I just saw your=20 answer. It works perfectly now! Knew it had to be=20 something stupid. I mean, not that you'd have to=20 be stupid to figure it out -- that would be=20 insulting the guy who helped me. Aww, crap. You=20 know what I meant. :-) Gary, thank you, too for your simple solution. If=20 Terry's hadn't worked, you were in the pipeline.=20 Good, brief code. ----- Patrick Junkroski =46rom:=A0Terry Wilson <terry@terryfic.com> Date:=A0February 19, 2009 1:38:12 PM EST To:=A0<talk@webdna.us> Subject:=A0Re: [WebDNA] Math Date issue Reply-To:=A0<talk@webdna.us> should be this: &group1type=3Ddate&group2type=3Ddate Terry Hi - I'm using WebDNA Commerce Edition 6.0 on a G5 Xserve under 10.3.9. I have code that is supposed to search a database=20 and show any advertiser's status (called=20 linkexpires, in this example) falls between=20 today's date and a week from now. It generally=20 seems to work, but every once in a while I have=20 an issue like this one. Here's my code (minus some HTML to make it cleaner): The following companies have LINKS =A0whose status=20 will expire between [date] and [math=20 date]{[date]}+{00/07/0000}[/math] [search=20 db=3DTheSeniorGuide.db&linkexpirestype=3Ddate&group1field=3Dlinkexpires&grou= p2field=3Dlinkexpires&group1fieldtype=3Ddate&group2fieldtype=3Ddate&legroup1= datarq=3D[math=20 date]{[date]}+{00/07/0000}[/math]&gegroup2datarq=3D[date]&ascompanynamesort= =3D1] <= th>Expiration [founditems][hideif [linkexpires]=3D] [/hideif][/founditems] [/search] Here's the output: The following companies have=A0LINKS=A0whose status=20 will expire between 02/19/2009 and 02/26/2009 CompanyAddressCityStateZipExpirationProvince=20 Place of DePaul6403 Granby=20 StNorfolkVA2350502/25/2010Province Place of=20 MaryviewOne Bon Secours=20 WayPortsmouthVA2370302/25/2010 If the output didn't copy properly, it shows two listings who expire 02/25/2= 010 The day and month of the expiration is true, but=20 the year is wrong. This advertiser shouldn't show=20 up here until one year from now. Where's my coding error? Anyone? =A0Anyone? =A0Bueller? TIA ----- Patrick Junkroski -- Terry Wilson | terry@terryfic.com | http://terryfic.com http://WhosComing.com - a simplified, affordable online reservation system http://TightJacket.com -- stylish protection for your laptop -------------------------------------------------------------------------- Attitude is the only difference between ordeal and adventure. Terry Wilson

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:

Users.db [encrypt seed=????] (1998)psst (1997)[WebDNA] Problems with the Emailer Queue (2012)Emailer (1997)[WebDNA] [append] does not add the newline char at the end of (2009) v6 Development copy download link seems to be offline? (2004)Math (1997)Running 2 two WebCatalog.acgi's (1996)access denied problem (1997)Problems getting parameters passed into email. (1997) Problem with a search context (2005)HTML mapped to WebCat (2001)f2 download problems (1997)[WebDNA] Anyone using version 6.2.1 in production on Linux (2013)WebCat2b13MacPlugIn - syntax to convert date (1997)[WebDNA] Sorry WebDNA server not running /Template ERROR/ Slow speeds (2019)WebCatalog stalls (1998)A Global Variable (1997)Support ?? (1997)[WebDNA] WebDNA 8.2 and BioType (2016)
CompanyAddressCityStateZip
[companyname][streetaddress][city]= [state][zip][linkexpires]