Re: Searching on Only a Month that's in a order_date field?

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37205
interpreted = N
texte = Assuming your ORDER_DATE is stored in MM/DD/YYYY format (though I much prefer it as days-since-0/0/0000), something like this should get you a useful range...[text]tStart=03/01/2001[/text] [text]tEnd=[math date]{[tStart]}+{01/00/0000}-1[/math][/text] [search db=your.db&rnORDER_DATEdatarq=[tStart] [tEnd]&ORDER_DATEtype=date] ... [/search]- brianAt 7:57 PM 7/13/2001, Jesse Proudman (Lists Account) wrote: >I may be missing it in the docs but I'm trying to search a database and find >all entries that are within a certain month. In my database I've got a >ORDER_DATE field... Any one have any ideas? I was going to try range but >each month has a different amount of days... > >-jesse------------------------------------------------------------- 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: Searching on Only a Month that's in a order_date field? (Brian Fries 2001)
  2. Searching on Only a Month that's in a order_date field? (Jesse Proudman (Lists Account) 2001)
Assuming your ORDER_DATE is stored in MM/DD/YYYY format (though I much prefer it as days-since-0/0/0000), something like this should get you a useful range...[text]tStart=03/01/2001[/text] [text]tEnd=[math date]{[tStart]}+{01/00/0000}-1[/math][/text] [search db=your.db&rnORDER_DATEdatarq=[tStart] [tEnd]&ORDER_DATEtype=date] ... [/search]- brianAt 7:57 PM 7/13/2001, Jesse Proudman (Lists Account) wrote: >I may be missing it in the docs but I'm trying to search a database and find >all entries that are within a certain month. In my database I've got a >ORDER_DATE field... Any one have any ideas? I was going to try range but >each month has a different amount of days... > >-jesse------------------------------------------------------------- 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:

bug in Webcat OSX (1999) WebCat2final1 crashes (1997) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Reversed words (1997) calculating tax rates, mail order solutions and version 2 (1997) setitems, one more thing (1997) [defined]ish (1997) docs for WebCatalog2 (1997) [WebDNA] DNA suffix (2008) Pass a form (2003) WebCommerce: Folder organization ? (1997) subscribe (2002) How to implement 'email to a friend' feature? (2002) FlushDatabase Suggestion (1998) Live hits (2003) NT or Mac (1997) WebDNA to Apache RewriteMap (2005) [SHOWIF] (1997) MasterCounter - Does this work?? (1999) Problem 2 of 2 (was: Shipping Confusion) (2000)