Re: Hummm ....

This WebDNA talk-list message is from

2002


It keeps the original formatting.
numero = 40410
interpreted = N
texte = Fantastic, thank you! ... This works perfectly. I owe you a beer! : c) On Monday, June 3, 2002, at 02:11 PM, Brian Fries wrote:> WebCat considers 06/31/2002 to be the same as 07/01/2002, since June > (unlike May) has just 30 days. Of course Feb is worse, so any day > greater than 28 will give you problems. > > The trick is to simply substitute 01 for the day in your date, prior to > the loop: > > [text]tDate=[format days_to_date > %m/01/%Y][math]{[tDate]}[/math][/format][/text] > > ... and you don't need the thousands in your format - just the .2d > will get you what you want. The thousands won't hurt, since your > working with numbers under 1,000, but it is superfluous. > > - brian > > At 2:06 PM 6/3/02, Marc Kaiwi wrote: >> Because [Format thousands .2d][index][/Format] gives me the two digit >> number I need in the date xx/xx/xxxx to do the {math-date} thing ... >> but I just don't know how to fix this thing with the months that don't >> have 31 days (sep, apr, jun, nov) and it's really not going to work >> when February rolls around! : c) >> >> Thanks, >> >> >> >> On Monday, June 3, 2002, at 01:50 PM, Aaron Lynch wrote: >> >>> On 6/3/02 1:40 PM, Alain Russell mashed the following keys : >>> >>>> Which part of the world do you live in ?? >>>> Course there's 31 days in may !! >>>> >>>>> Because there's only 30 days in may 2002. >>>>> >>>>> >>>>> On 6/3/02 1:32 PM, Marc Kaiwi mashed the following keys : >>>>> >>>>>> All right you wise crackers ... I have a major flaw in my thinking >>>>>> here, >>>>>> and I can't think far enough into it to fix it so I'm asking for >>>>>> help. >>>>>> >>>>>> This will not work if the date [tdate] is the 31st? Why not and >>>>>> how can >>>>>> I fix it? ... suggestions? >>>>>> >>>>>> [text]tdate=05/31/2002[/text] >>>>>> >>>>>> >>>>>> >>> >>> OK, try2. >>> >>> Why are you formatting the 2 digit month to thousands? >>> >>> [Format Days_To_Date %B][Math]{[tdate]}+{[Format thousands >>> .2d][index][/Format]/00/0000}[/Math] >>> >>> Shouldn't that be just: >>> >>> [math][Format Days_To_Date %B][Math]{[tdate]}+{[index]/00/0000}[/Math] >>> >>> Or maybe,(if that doesn't work, >>> >>> [math][Format Days_To_Date %B][Math]{[tdate]}+{[Format >>> .2d][index][/Format]/00/0000}[/Math] >>> >>> ??? > > -- <= Brian C. Fries, BrainScan Software > http://www.brainscansoftware.com => > <= Macintosh, Internet and Multimedia > http://www.artsofauburn.com => > <= Development and > Consulting => > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://search.smithmicro.com/ > > Signed: Marc Kaiwi San Diego Motorcycle Club: http://sdmotorcycleclub.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: Hummm .... (Ken MacMurchy 2002)
  2. Re: Hummm .... (Stuart Tremain 2002)
  3. Re: Hummm .... (Will Starck 2002)
  4. Re: Hummm .... (Will Starck 2002)
  5. Re: Hummm .... (Marc Kaiwi 2002)
  6. Re: Hummm .... (Marc Kaiwi 2002)
  7. Re: Hummm .... (Marc Kaiwi 2002)
  8. Re: Hummm .... (Brian Fries 2002)
  9. Re: Hummm .... (Rob Marquardt 2002)
  10. Re: Hummm .... (Marc Kaiwi 2002)
  11. Re: Hummm .... (Aaron Lynch 2002)
  12. Re: Hummm .... (Aaron Lynch 2002)
  13. Re: Hummm .... (Alain Russell 2002)
  14. Re: Hummm .... (Aaron Lynch 2002)
  15. Hummm .... (Marc Kaiwi 2002)
  16. Re: Hummm .... (Ron Ceballos 1998)
Fantastic, thank you! ... This works perfectly. I owe you a beer! : c) On Monday, June 3, 2002, at 02:11 PM, Brian Fries wrote:> WebCat considers 06/31/2002 to be the same as 07/01/2002, since June > (unlike May) has just 30 days. Of course Feb is worse, so any day > greater than 28 will give you problems. > > The trick is to simply substitute 01 for the day in your date, prior to > the loop: > > [text]tDate=[format days_to_date > %m/01/%Y][math]{[tDate]}[/math][/format][/text] > > ... and you don't need the thousands in your format - just the .2d > will get you what you want. The thousands won't hurt, since your > working with numbers under 1,000, but it is superfluous. > > - brian > > At 2:06 PM 6/3/02, Marc Kaiwi wrote: >> Because [Format thousands .2d][index][/Format] gives me the two digit >> number I need in the date xx/xx/xxxx to do the {math-date} thing ... >> but I just don't know how to fix this thing with the months that don't >> have 31 days (sep, apr, jun, nov) and it's really not going to work >> when February rolls around! : c) >> >> Thanks, >> >> >> >> On Monday, June 3, 2002, at 01:50 PM, Aaron Lynch wrote: >> >>> On 6/3/02 1:40 PM, Alain Russell mashed the following keys : >>> >>>> Which part of the world do you live in ?? >>>> Course there's 31 days in may !! >>>> >>>>> Because there's only 30 days in may 2002. >>>>> >>>>> >>>>> On 6/3/02 1:32 PM, Marc Kaiwi mashed the following keys : >>>>> >>>>>> All right you wise crackers ... I have a major flaw in my thinking >>>>>> here, >>>>>> and I can't think far enough into it to fix it so I'm asking for >>>>>> help. >>>>>> >>>>>> This will not work if the date [tdate] is the 31st? Why not and >>>>>> how can >>>>>> I fix it? ... suggestions? >>>>>> >>>>>> [text]tdate=05/31/2002[/text] >>>>>> >>>>>> >>>>>> >>> >>> OK, try2. >>> >>> Why are you formatting the 2 digit month to thousands? >>> >>> [Format Days_To_Date %B][math]{[tdate]}+{[Format thousands >>> .2d][index][/Format]/00/0000}[/Math] >>> >>> Shouldn't that be just: >>> >>> [math][Format Days_To_Date %B][math]{[tdate]}+{[index]/00/0000}[/Math] >>> >>> Or maybe,(if that doesn't work, >>> >>> [math][Format Days_To_Date %B][math]{[tdate]}+{[Format >>> .2d][index][/Format]/00/0000}[/Math] >>> >>> ??? > > -- <= Brian C. Fries, BrainScan Software > http://www.brainscansoftware.com => > <= Macintosh, Internet and Multimedia > http://www.artsofauburn.com => > <= Development and > Consulting => > > ------------------------------------------------------------- > 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 digest@talk.smithmicro.com> > Web Archive of this list is at: http://search.smithmicro.com/ > > Signed: Marc Kaiwi San Diego Motorcycle Club: http://sdmotorcycleclub.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/ Marc Kaiwi

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:

The force has left me. (2002) Setting up WebCatalog with Retail Pro data (1996) Summing fields (1997) [showif] based on data from [tcpconnect][tcpsend]? (2000) Looking up two prices in database? (1997) Firesite cache vs webcat cache (1997) % (mod) was looping table rows (1999) AE aware WebCatalog.acgi? (1997) [WebDNA] Webcat 6 - MacIntel - iTools (2008) Hard Questions ? (1997) Odd linefeed problem (2003) PCS Frames (1997) Version f1 status (1997) Bug or syntax error on my part? (1997) Thanks Grant (1997) WebCatalog for Dummies part 2 (2000) WebDelivery: One step closer !! (1997) WebCat .pdf file is still messed up... (2000) [WebDNA] Different responses for the same commands ... (2011) Payments -> Bank Accounts (2005)