DHTMLX Docs & Samples Explorer

Show month

Show today month (default) Show Jan 2011
Source
<link rel="stylesheet" type="text/css" href="../../codebase/dhtmlxcalendar.css">
    <link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxcalendar_dhx_skyblue.css">
    <script src="../../codebase/dhtmlxcalendar.js"></script>
    <style>
        #calendar,
        #calendar2,
        #calendar3 {
            border: 1px solid #909090;
            font-family: Tahoma;
            font-size: 12px;
        }
        table.main_tbl_calendar td {
            font-family: Tahoma;
            font-size: 12px;
        }
    </style>
    <script>
var myCalendar,
myCalendar2;
function doOnLoad() {
    myCalendar = new dhtmlXCalendarObject("calendar");
    myCalendar2 = new dhtmlXCalendarObject("calendar2");
    myCalendar2.showMonth(new Date(2011, 0, 1));
}
</script> <div style="position:relative;height:280px;"> <table border="0" cellspacing="10" cellpadding="1" class="main_tbl_calendar"> <tr> <td>Show today month (default)</td> <td>Show Jan 2011</td> </tr> <tr> <td><input type="text" id="calendar"></td> <td><input type="text" id="calendar2"></td> </tr> </table> </div>