Here's a simple Java applet that calculates the day of the week. If you're interested in seeing how it works, you can view the source code for the Java applet below.
If you like Java applets, check out Pascal's triangle, or my Pythagorean triple calculator. You can also view other interactive content on Math Lair.