| Sample: dhtmlxCalendar | Date Formating | dhtmlxCalendar main page |

This sample illustrates that the calendar has flexible date format. You can set date format yourselves

| Date Format: Date from String (use format set above) Result:
    Date Format Info:
    %e [g-] Day of the month without leading zeros (01..31)
    %d [gs] Day of the month, 2 digits with leading zeros (01..31)
    %j [g-] Day of the year, 3 digits with leading zeros (001..366)
    %a [g-] A textual representation of a day, three letters
    %W [g-] A full textual representation of the day of the week
    %c [g-] Numeric representation of a month, without leading zeros (1..12)
    %m [gs] Numeric representation of a month, with leading zeros (01..12)
    %b [gs] A short textual representation of a month, three letters (Jan..Dec)
    %M [gs] A full textual representation of a month, such as January or March (January..December)
    %y [g-] A two digit representation of a year (93..03)
    %Y [gs] A full numeric representation of a year, 4 digits (1993..2003)
    %% [gs] Char "%"

    mCal.setDateFormat(document.getElementById('dateformat').value)
    var newdateVal = document.getElementById('newdate').value;
    mCal.setDate(newdateVal);