Click here for the source code by Tom Igoe.
This was inspired by the calendar product called Ring-A-Date by designer Giorgio Della Beffa.