Re: Date Help
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56400
interpreted = N
texte = I've had problems before when trying to do a less than or equal to one date and greater than or equal to another. Try a "range" search, I've always had much better results with those when working with dates:[search db=admin/-Timesheets.db&eqTSUserNamedatarq=[USERNAME]&rnTSDATEdatarq=[SDate] [EDate]&asTSDATEsort=1&TSDATEtype=date]GKAt 08:55 AM 2/27/2004, you wrote:>Hi>>OK, I am officially going off my head. I have re-used a piece of otherwise>working code and it's not working and I cannot see why. Basically I want to>return the timesheet records a given user for the current month. The records>have a field called TSDATE which is in dd/mm/yyyy (UK Format). I know I>could save these as numbers but would prefer to work in this format.>>(I have put a return in after each & in the search string to save any funny>returns from the email.)>>[math date]SDate={01/[date %m]/[date %Y]}[/math] - 01/02/2004>[math date]EDate={01/[date %m]/[date %Y]}+{00/01/0000}[/math] - 01/03/2004>>[search db=admin/-Timesheets.db&>eqTSUserNamedatarq=[USERNAME]&>geTSDATEdatarq=[SDate]&>lsTSDATEdatarq=[EDate]&>asTSDATEsort=1&>TSDATEtype=date]>>>Any help much appreciated, I'm sure its something silly. This code is just>returning all records for that user.>>Cheers>>Steve Craig-------------------------------------------------------------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://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I've had problems before when trying to do a less than or equal to one date and greater than or equal to another. Try a "range" search, I've always had much better results with those when working with dates:[search db=admin/-Timesheets.db&eqTSUserNamedatarq=[username]&rnTSDATEdatarq=[SDate] [EDate]&asTSDATEsort=1&TSDATEtype=date]GKAt 08:55 AM 2/27/2004, you wrote:>Hi>>OK, I am officially going off my head. I have re-used a piece of otherwise>working code and it's not working and I cannot see why. Basically I want to>return the timesheet records a given user for the current month. The records>have a field called TSDATE which is in dd/mm/yyyy (UK Format). I know I>could save these as numbers but would prefer to work in this format.>>(I have put a return in after each & in the search string to save any funny>returns from the email.)>>[math date]SDate={01/[date %m]/[date %Y]}[/math] - 01/02/2004>[math date]EDate={01/[date %m]/[date %Y]}+{00/01/0000}[/math] - 01/03/2004>>[search db=admin/-Timesheets.db&>eqTSUserNamedatarq=[username]&>geTSDATEdatarq=[SDate]&>lsTSDATEdatarq=[EDate]&>asTSDATEsort=1&>TSDATEtype=date]>>>Any help much appreciated, I'm sure its something silly. This code is just>returning all records for that user.>>Cheers>>Steve Craig-------------------------------------------------------------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://webdna.smithmicro.com/
Gary Krockover
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:
Feedback Please (2003)
3.0 [TEXT] variables (1998)
mac hack (1997)
Help! WebCat2 bug (1997)
New public beta available (1997)
Please please help (2001)
MacFinder -- a new WebDNA web site (1998)
Duplicate Cart Problem in Netscape (2000)
multiple search commands (1997)
WebCat2: multiple currency support (1997)
Summing fields (1997)
[TaxableTotal] - not working with AOL and IE (1997)
Pithy questions on webcommerce & siteedit (1997)
emailer w/F2 (1997)
grouped fields? (1999)
normal users.db calls ... (1998)
2.0Beta Command Ref (can't find this instruction) (1997)
Emailer (1998)
WC2.0 Memory Requirements (1997)
The code, one more time. (2003)