How many working days?

This small script finds the number of working days between two dates

[text]startdate=02/01/2004[/text]
[text]enddate=02/24/2004[/text]

[math show=f]workingdays=0[/math]

[loop start=[math]{[startdate]}[/math]&end=[math]{[enddate]}[/math]]
[hideif |Sat|Sun|^[format days_to_date %a][index][/format]]
[math show=f]workingdays=[workingdays]+1[/math]
[/hideif]
[/loop]

Working Days=[workingdays]

DOWNLOAD WEBDNA NOW!

Top Articles:

Tips and Tricks

A list of user-submitted tips ...

WebDNA Modules

A list of the currently available modules...

Download WebDNA Applications

WebDNA applications...

F.A.Q

A compilation of some user's questions...

WebDNA Libraries

A list of available libraries for WebDNA...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

Write Once Use Many

Reuse the same code over and over again on your site with the [include] context...

How to keep the text variable after a function has finished

By default...

Setting a 30-minute Cookie

Configuring the expires time for a short-term cookie is tricky...

Removing whitespace

How can I remove all whitespace entered by a user from an input box (ie card number)...

Handling credit card numbers

Encrypting the credit card numbers does the job quite nicely...

How to setup CODA to work with WebDNA?

This page will show graphically how to setup CODA as a WebDNA partner :-)...