you can do it in variation wayts and all of them cover
all you needs and have Year,Month and dates. you can
find and download a lot of calendars were coded by js.
for example you can download a very nice cal. on
dynarch.com. In addition, if you use JSF tags in your
pages you can use apache tobago tag <tc:calendar> (tag
class is
org.apache.myfaces.tobago.taglib.component.CalendarTag)
or apache Tomahawk tag <t:inputCalendar>