Re: Another date range search Q

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 43294
interpreted = N
texte = Gary -I get 02/07/35 from the date format example (OSX).In your search, the startdatetype and enddatetype parameters are meaningless. The ddatetype parameter applies to both the DB field and the value(s) it's being compared to. Try removing the extra parameters to see if it helps. It looks like WebDNA is not using the ddatetype parameter and is instead doing a text comparison.And I strongly recommend the days since format for dates - it makes all range tests and date math much simpler and faster.- BrianAt 5:15 PM 9/10/02, Gary Krockover wrote: >Ok then, why does this (from the online docs): >[Format Days_To_Date %m/%d/%y]195462[/Format] > >Return this?: >02/27/*+ > >Latest WebDNA, Win2kadvserv. > >Why don't I just go home for the day? >GK > > >| Why does this search: >| [Search db=report.db&eqacctdatarq=[acct]&rnddatedatarq=[startdate] >| >[enddate]&startdatetype=date&enddatetype=date&ddatetype=date&ddatesort=1&dda >| tesdir=de] >| >| startdate: 7/23/2002 >| enddate: 7/30/2002 >| >| Return: >| 7/3/2002 >| 7/26/2002 >| 7/30/2002 >| >| ? >| >| Yes, I've changed the dates in the database from 7/3/2002 to 7/03/2002 and >| it fixes it. Is the only answer to change the way the date is appended to >| the database? Should I be working with #ofdays since.. format. I think I >| know that answer.... :) >| >| GK > > >------------------------------------------------------------- >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/------------------------------------------------------------- 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: Another date range search Q (Brian Fries 2002)
  2. Re: Another date range search Q (Gary Krockover 2002)
  3. Another date range search Q (Gary Krockover 2002)
Gary -I get 02/07/35 from the date format example (OSX).In your search, the startdatetype and enddatetype parameters are meaningless. The ddatetype parameter applies to both the DB field and the value(s) it's being compared to. Try removing the extra parameters to see if it helps. It looks like WebDNA is not using the ddatetype parameter and is instead doing a text comparison.And I strongly recommend the days since format for dates - it makes all range tests and date math much simpler and faster.- BrianAt 5:15 PM 9/10/02, Gary Krockover wrote: >Ok then, why does this (from the online docs): >[Format Days_To_Date %m/%d/%y]195462[/Format] > >Return this?: >02/27/*+ > >Latest WebDNA, Win2kadvserv. > >Why don't I just go home for the day? >GK > > >| Why does this search: >| [Search db=report.db&eqacctdatarq=[acct]&rnddatedatarq=[startdate] >| >[enddate]&startdatetype=date&enddatetype=date&ddatetype=date&ddatesort=1&dda >| tesdir=de] >| >| startdate: 7/23/2002 >| enddate: 7/30/2002 >| >| Return: >| 7/3/2002 >| 7/26/2002 >| 7/30/2002 >| >| ? >| >| Yes, I've changed the dates in the database from 7/3/2002 to 7/03/2002 and >| it fixes it. Is the only answer to change the way the date is appended to >| the database? Should I be working with #ofdays since.. format. I think I >| know that answer.... :) >| >| GK > > >------------------------------------------------------------- >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/------------------------------------------------------------- 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:

Searching an Email database (1997) WebCatalog2 Feature Feedback (1996) Anybody running directory indexer? (1998) webcat nt (1997) New Site Announcement (1998) WCS Newbie question (1997) Fedora Core 2 (2005) [BoldWords] WebCat.acgib15Mac (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Windows version Trouble Shooting (2007) Logical and or in [hideif] (1997) Press Release hit the NewsWire!!! (1997) [WebDNA] [OT] WebDNA Wiki - need grammar check / (2009) Help name our technology! (1997) Tags in the header (2000) searching with if/then (2004) Date Sorting (1997) adding second sku (2000) why .HTML pages no processing? (2000) WebCatalog not recognizing ShoppingCarts folder (2000)