Re: Business day calculator

This WebDNA talk-list message is from

2006


It keeps the original formatting.
numero = 66358
interpreted = N
texte = What about holidays? :) -Dan On Thu, 02 Mar 2006 07:49:58 -0500 Adam O'Connor wrote: > Try this: > > > Today's date: [date] >
> You package will be delivered by: (Today's date + 5 business days) > > [switch value=[date %a]] > [case value=mon][Math date]{[date]}+{00/07/0000}[/Math][/case] > [case value=tue][Math date]{[date]}+{00/06/0000}[/Math][/case] > [case value=wed][Math date]{[date]}+{00/05/0000}[/Math][/case] > [case value=thu][Math date]{[date]}+{00/05/0000}[/Math][/case] > [case value=fri][Math date]{[date]}+{00/05/0000}[/Math][/case] > [case value=sat][Math date]{[date]}+{00/05/0000}[/Math][/case] > [case value=sun][Math date]{[date]}+{00/05/0000}[/Math][/case] > [/switch] > > > > > > > > Pat McCormick wrote: >> I would like to calculate the number of business days from any given >> date. >> >> Rather than have my site say "You'll receive your order in 5 business >> days.", I'd rather say "You'll receive your order on xx/xx/xxxx.", >> which would be 5 business days from the system date. >> >> Has anyone coded this and could you help out a fellow wDNAr? >> >> Thanks, >> Pat >> >> ------------------------------------------------------------- >> 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/ > > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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:

    
  1. Re: Business day calculator ( Adam O'Connor 2006)
  2. Re: Business day calculator ( "Dan Strong" 2006)
  3. Re: Business day calculator ( Adam O'Connor 2006)
  4. Business day calculator ( Pat McCormick 2006)
What about holidays? :) -Dan On Thu, 02 Mar 2006 07:49:58 -0500 Adam O'Connor wrote: > Try this: > > > Today's date: [date] >
> You package will be delivered by: (Today's date + 5 business days) > > [switch value=[date %a]] > [case value=mon][Math date]{[date]}+{00/07/0000}[/Math][/case] > [case value=tue][Math date]{[date]}+{00/06/0000}[/Math][/case] > [case value=wed][Math date]{[date]}+{00/05/0000}[/Math][/case] > [case value=thu][Math date]{[date]}+{00/05/0000}[/Math][/case] > [case value=fri][Math date]{[date]}+{00/05/0000}[/Math][/case] > [case value=sat][Math date]{[date]}+{00/05/0000}[/Math][/case] > [case value=sun][Math date]{[date]}+{00/05/0000}[/Math][/case] > [/switch] > > > > > > > > Pat McCormick wrote: >> I would like to calculate the number of business days from any given >> date. >> >> Rather than have my site say "You'll receive your order in 5 business >> days.", I'd rather say "You'll receive your order on xx/xx/xxxx.", >> which would be 5 business days from the system date. >> >> Has anyone coded this and could you help out a fellow wDNAr? >> >> Thanks, >> Pat >> >> ------------------------------------------------------------- >> 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/ > > > > ------------------------------------------------------------- > 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/ ------------------------------------------------------------- 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/ "Dan Strong"

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:

Ruby on Rails (was Looping Search) (2006) frames & carts (1997) Frames and cart values (1998) Busy WebCatalog (2000) Template not found error messages (1997) Entry point? Security w/ dbase helper? (1997) ShowIf Question (1998) WC2.0 Memory Requirements (1997) WebCat2: Items xx to xx shown, etc. (1997) Encrypt (1999) Apple event reply error (-1) (1997) [WebDNA] WebDNA code displaying on page (2012) Country & Ship-to address & other fields ? (1997) Snake Bites (1997) Problems with AOHell (1999) WebCat2 - [format thousands] (1997) WebCatalog memory error. (1998) [LOOKUP] (1997) unsubscribe (2000) set header in DB (no cart) (2003)