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:

More than one db with the same namn (was: WC2f3) (1997) [Q] Novice's question (1997) [OT] FTP client (2003) New Command prefs ... (1997) Error Lob.db records error message not name (1997) Re:2nd WebCatalog2 Feature Request (1996) Webmerchant quitting (1998) [replaceChars] would be nice ... (1997) WebCat2.0 [format thousands .0f] no go (1997) Forcing Paragraph Breaks on Results (1998) Append error (2002) CMSBuilder (2004) email code (1998) UPDATE PROBLEM (1997) Date sorting (2004) WebCat2b15MacPlugin - showing [math] (1997) WebCommerce: Folder organization ? (1997) unsubscribe (1997) ReadDateFormat (1998) Speed Admin? (Was FlushDatabases) (1997)