[WebDNA] Math Date issue

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 102026
interpreted = N
texte = --Apple-Mail-130--938688097 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 and show any advertiser's status (called linkexpires, in this example) falls between today's date and a week from now. It generally seems to work, but every once in a while I have an issue like this one. Here's my code (minus some HTML to make it cleaner): The following companies have LINKS whose status will expire between [date] and [math date]{[date]}+{00/07/0000}[/math] [search db = TheSeniorGuide .db &linkexpirestype = date &group1field = linkexpires &group2field = linkexpires &group1fieldtype=date&group2fieldtype=date&legroup1datarq=[math date] {[date]}+{00/07/0000}[/math]&gegroup2datarq=[date]&ascompanynamesort=1] [founditems][hideif [linkexpires]=] [/hideif][/founditems] [/search] Here's the output: The following companies have LINKS whose status will expire between 02/19/2009 and 02/26/2009 CompanyAddressCityStateZipExpiration Province Place of DePaul6403 Granby StNorfolkVA2350502/25/2010 Province Place of MaryviewOne Bon Secours WayPortsmouthVA23703 02/25/2010 If the output didn't copy properly, it shows two listings who expire 02/25/2010 The day and month of the expiration is true, but the year is wrong. This advertiser shouldn't show up here until one year from now. Where's my coding error? Anyone? Anyone? Bueller? TIA ----- Patrick Junkroski --Apple-Mail-130--938688097 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
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 and show any advertiser's status (called = linkexpires, in this example) falls between today's date and a week from = now. It generally seems to work, but every once in a while I have an = issue like this one.  

Here's my code = (minus some HTML to make it cleaner):

The = following companies have LINKS  whose status will expire between = [date] and [math = date]{[date]}+{00/07/0000}[/math]

[search = db=3DTheSeniorGuide.db&linkexpirestype=3Ddate&group1field=3Dlinkex= pires&group2field=3Dlinkexpires&group1fieldtype=3Ddate&group2f= ieldtype=3Ddate&legroup1datarq=3D[math = date]{[date]}+{00/07/0000}[/math]&gegroup2datarq=3D[date]&ascompan= ynamesort=3D1]
<table cellspacing=3D"10" = border=3D"1">
<tr><th>Company</th><th>Address</th= ><th>City</th><th>State</th><th>Zip</th><th>Expiratio= n</th></tr>
[founditems][hideif = [linkexpires]=3D]
<tr><td><b>[companyname]</b></t= d><td>[streetaddress]</td><td>[city]</td><td>[state]</td= ><td>[zip]</td><td>[linkexpires]</td></tr>
[/hide= if][/founditems]
[/search]


Here's the output:

The following companies have LINKS whose status will = expire between 02/19/2009 and 02/26/2009

CompanyAddressCityStateZipExpiration
[companyname][streetaddress][city][state][zip][linkexpires]
Zip
CompanyAddressCityStateExpiration
Province Place of = DePaul6403 Granby = StNorfolkVA2350502/25/2010
Province Place of MaryviewOne Bon Secours = WayPortsmouthVA2370302/25/2010

=

If the output = didn't copy properly, it shows two listings who expire = 02/25/2010

The day and month of the expiration = is true, but the year is wrong. This advertiser shouldn't show up here = until one year from now.

Where's my coding = error? Anyone?  Anyone? =  Bueller?

TIA
-----
Patr= ick = Junkroski
= --Apple-Mail-130--938688097-- Associated Messages, from the most recent to the oldest:

    
  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)
--Apple-Mail-130--938688097 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 and show any advertiser's status (called linkexpires, in this example) falls between today's date and a week from now. It generally seems to work, but every once in a while I have an issue like this one. Here's my code (minus some HTML to make it cleaner): The following companies have LINKS whose status will expire between [date] and [math date]{[date]}+{00/07/0000}[/math] [search db = TheSeniorGuide .db &linkexpirestype = date &group1field = linkexpires &group2field = linkexpires &group1fieldtype=date&group2fieldtype=date&legroup1datarq=[math date] {[date]}+{00/07/0000}[/math]&gegroup2datarq=[date]&ascompanynamesort=1] [founditems][hideif [linkexpires]=] [/hideif][/founditems] [/search] Here's the output: The following companies have LINKS whose status will expire between 02/19/2009 and 02/26/2009 CompanyAddressCityStateZipExpiration Province Place of DePaul6403 Granby StNorfolkVA2350502/25/2010 Province Place of MaryviewOne Bon Secours WayPortsmouthVA23703 02/25/2010 If the output didn't copy properly, it shows two listings who expire 02/25/2010 The day and month of the expiration is true, but the year is wrong. This advertiser shouldn't show up here until one year from now. Where's my coding error? Anyone? Anyone? Bueller? TIA ----- Patrick Junkroski --Apple-Mail-130--938688097 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
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 and show any advertiser's status (called = linkexpires, in this example) falls between today's date and a week from = now. It generally seems to work, but every once in a while I have an = issue like this one.  

Here's my code = (minus some HTML to make it cleaner):

The = following companies have LINKS  whose status will expire between = [date] and [math = date]{[date]}+{00/07/0000}[/math]

[search = db=3DTheSeniorGuide.db&linkexpirestype=3Ddate&group1field=3Dlinkex= pires&group2field=3Dlinkexpires&group1fieldtype=3Ddate&group2f= ieldtype=3Ddate&legroup1datarq=3D[math = date]{[date]}+{00/07/0000}[/math]&gegroup2datarq=3D[date]&ascompan= ynamesort=3D1]
<table cellspacing=3D"10" = border=3D"1">
<tr><th>Company</th><th>Address</th= ><th>City</th><th>State</th><th>Zip</th><th>Expiratio= n</th></tr>
[founditems][hideif = [linkexpires]=3D]
<tr><td><b>[companyname]</b></t= d><td>[streetaddress]</td><td>[city]</td><td>[state]</td= ><td>[zip]</td><td>[linkexpires]</td></tr>
[/hide= if][/founditems]
[/search]


Here's the output:

The following companies have LINKS whose status will = expire between 02/19/2009 and 02/26/2009

CompanyAddressCityStateZipExpiration
[companyname][streetaddress][city][state][zip][linkexpires]
Zip
CompanyAddressCityStateExpiration
Province Place of = DePaul6403 Granby = StNorfolkVA2350502/25/2010
Province Place of MaryviewOne Bon Secours = WayPortsmouthVA2370302/25/2010

=

If the output = didn't copy properly, it shows two listings who expire = 02/25/2010

The day and month of the expiration = is true, but the year is wrong. This advertiser shouldn't show up here = until one year from now.

Where's my coding = error? Anyone?  Anyone? =  Bueller?

TIA
-----
Patr= ick = Junkroski
= --Apple-Mail-130--938688097-- Patrick Junkroski

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:

Shopping Cart Best Practices (2006) searching with if/then (2004) WebMerchant Setup help (2000) PCS Emailer's role ? (1997) What's New Date (2002) Banners (1997) Secure Server (1997) Form based Redirect (2001) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) Banners and sort of random display (1997) [WebDNA] WebDNA crash and now emailer not working (2009) Online reference (1997) Emailer Set Up (1997) PDF on the fly - how to? (2005) WCS Newbie question (1997) Closing Databases (1998) Problems with [Applescript] (1997) Nesting FoundItem Context (1997) WebCat2_Mac RETURNs in .db (1997) expired beta (1997)