Re: Newbie search question (between two dates)

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 39465
interpreted = N
texte = Your problem is not with your search, which is fine, but rather with your math variable weeks... What you are storing in weeks is the math equivalent of a date, the number of days since 12/31/0000. What you need in your search is the text format of the date. So, try setting a text variable instead, like this:[text]weeks=[math date]{[date]}+14[/math][/text]- Brian At 4:18 PM 10/18/2001, Matthew Bohne wrote: >I have an event date, and corrosponding description information: >eventdate and eventdesc respectively. > >I need to display all events from today until two weeks from today >out of a .db called norcalendar.db > >[math date]weeks={[date]}+14[/math] >[search >db=norcalendar.db&xreventdatedata=[weeks]&mreventdatedata=[date]&eventdatetype=date&eventdatesort=1] >[founditems] > > > [eventdate] > > > [eventdesc] > > >[/founditems] >[/search] > >What am I doing wrong? Thanks. > >-- >Matthew C. Bohne -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Newbie search question (between two dates) (Kenneth Grome 2001)
  2. Re: Newbie search question (between two dates) (Clint Davis 2001)
  3. Re: Newbie search question (between two dates) (Matthew Bohne 2001)
  4. Re: Newbie search question (between two dates) (Andrew Simpson 2001)
  5. Re: Newbie search question (between two dates) (Glenn Busbin 2001)
  6. Re: Newbie search question (between two dates) (Andrew Simpson 2001)
  7. Re: Newbie search question (between two dates) (Brian Fries 2001)
  8. Re: Newbie search question (between two dates) (Brian Fries 2001)
  9. Re: Newbie search question (between two dates) (Andrew Simpson 2001)
  10. Re: Newbie search question (between two dates) (Glenn Busbin 2001)
  11. Re: Newbie search question (between two dates) (Andrew Simpson 2001)
  12. Re: Newbie search question (between two dates) (Glenn Busbin 2001)
  13. Re: Newbie search question (between two dates) (Andrew Simpson 2001)
  14. Newbie search question (between two dates) (Matthew Bohne 2001)
Your problem is not with your search, which is fine, but rather with your math variable weeks... What you are storing in weeks is the math equivalent of a date, the number of days since 12/31/0000. What you need in your search is the text format of the date. So, try setting a text variable instead, like this:[text]weeks=[math date]{[date]}+14[/math][/text]- Brian At 4:18 PM 10/18/2001, Matthew Bohne wrote: >I have an event date, and corrosponding description information: >eventdate and eventdesc respectively. > >I need to display all events from today until two weeks from today >out of a .db called norcalendar.db > >[math date]weeks={[date]}+14[/math] >[search >db=norcalendar.db&xreventdatedata=[weeks]&mreventdatedata=[date]&eventdatetype=date&eventdatesort=1] >[founditems] > > > [eventdate] > > > [eventdesc] > > >[/founditems] >[/search] > >What am I doing wrong? Thanks. > >-- >Matthew C. Bohne -- <= Brian C. Fries, BrainScan Software http://www.brainscansoftware.com =>------------------------------------------------------------- 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://search.smithmicro.com/ Brian Fries

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:

HTML encoding in URLs (1997) Problems with SELECT MULTIPLE (1999) Country & Ship-to address & other fields ? (1997) GuestBook example (1997) Emailer (1997) breaking words (1997) Three Guesses? (2004) Which is Faster (1998) OK, here goes... (1997) problems with 2 tags shakur (1997) WebCatalog Work (2001) TeaRoom Search page (2000) Two prices in shoppingcart? (1997) another problem (1997) Shipping charges depending on tax rate? (1997) Errant Email. (1998) Upgrage pricing... The future of WebCatalog is coming (2000) WebCatalog can't find database (1997) [isfile] ? (1997) WebCatalog vs WebDNA (2002)