Re: Business day calculator
This WebDNA talk-list message is from 2006
It keeps the original formatting.
numero = 66359
interpreted = N
texte = Maybe set up a temp table with your holidays, if the resulting date matches one of the listed holidays, then add a day and recheck. If I get some time later I will mess with it.Dan Strong wrote:> 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/-------------------------------------------------------------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:
Maybe set up a temp table with your holidays, if the resulting date matches one of the listed holidays, then add a day and recheck. If I get some time later I will mess with it.Dan Strong wrote:> 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/-------------------------------------------------------------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:
How to archive....? (1998)
uninstalling webcatalog (2000)
[off] Promotions Co? (1997)
webcat license???? (1997)
access denied problem (1997)
Showif, Hideif reverse logic ? (1997)
Migrating to NT (1997)
How to Display text in empty fields (1997)
Re:Email (1998)
url value (2002)
4.5 Upgrade (2003)
[WebDNA] [thisurlplusget] not working (2012)
Can't use old cart file (was One more try) (1997)
WCS Newbie question (1997)
LookUp Tag (1997)
autosensing lanague selection (1997)
Running _every_ page through WebCat ? (1997)
anyone have an automated template encrypter? (2000)
WebCat name recognition (1998)
TCPconnect in a DB? (1999)