please see my code and tell me how we show date

Hello Sir,



i am applying this code to show date “23 Dec” but it gives me error



“dhtmlx is not defined”



mygrid.setDateFormat("%d %b","%Y-%m-%d");





below is my code please reply me wht i do i m using dhtmlxConnector_php to show data not dhtmlxgrid.









sample.html







    







    



mygrid = new dhtmlXGridObject(‘gridbox’);

    mygrid.setImagePath(“dhtmlxGrid/codebase/imgs/”);

    mygrid.clearAll(0);

    mygrid.setHeader(“Check,Add,Del,ShotID,Shotstatus,TaskID,Taskref,Task-Note,Alloted Mandays,UserID,TaskStatus,StartDate,EndDate,Task Priority,Actual Mandays,Supervisor”);

    mygrid.attachHeader("#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter, ,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter,#connector_select_filter")

    //mygrid.setInitWidths(“100,*”)

    mygrid.setColSorting(" ,  ,str,str,str,str,str,str,str,str,date,date,int,int,str")

        mygrid.setColTypes(“ch,link,link,ro,ro,ed,ed,txt,ed,ed,ro,dhxCalendarA,dhxCalendarA,ed,ed,ed”);

    mygrid.enableSmartRendering(true)

    mygrid.enableMultiselect(true)

    mygrid.setDateFormat("%d %b","%Y-%m-%d");

    mygrid.init();

    mygrid.loadXML(“conn.php?projid=”+selected_value,calculateFooterValues);

    var dp = new dataProcessor(“conn.php”);

    dp.init(mygrid);









waiting for reply



regards

Suraj








Hello,


dhtmlxcommon.js file should be included before all other dhtmlx libraries.