Re: Business day calculator
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 66356
interpreted = N
texte = 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/
Associated Messages, from the most recent to the oldest:
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/
Adam O'Connor
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:
WebCatalog 2.1b4/Mac available (1997)
Using Protection =) (2003)
Error Log.db --however (1997)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
[subtotal] (2000)
OT: Merchant Accounts (2003)
P1: How to make webcatalog more stable. - LONG (1999)
WebCat .pdf file is still messed up... (2000)
japanese characters (1997)
WebCat2b13 Command Reference Doc error (1997)
WebCat2.0 [format thousands .0f] no go (1997)
Re[2]: POSTing to a secure server ... (2000)
Re1000001: Setting up shop (1997)
hidden databases (2000)
RE: Formulas.db + Users.db (1997)
I assume it is a safe bet this does not help (1998)
member access (2000)
TeaRoom Order fields email account remain empty even though thewy are filled. (1997)
Problems with ^ could be solved with [REPLACE CHARACTERS] (1997)
email (1998)