I need a script to check if a day is a saturday or sunday.

I dont mind using a class as long as the variable is posted back to the script instead of displayed on the page.

What would be even better is the ability to turn a dat into a weekday

Anybody know anything on this?