Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Mar 18, 2008 11:26
open dhtmlx forum
Date Format in Grid using dhxCalendar

For others that may struggle with this, your excells/dhtmlxgrid_excell_dhxcalendar.js as supplied sets the date format to european d/m/y

Your documentation refers to M/d/Y as the "default" date format (not european) all over the place, so it took me a while to find this is where I need to change things.
Answer posted on Mar 19, 2008 04:41
Sorry for misleading information in our documentation.

Actually, it should be  updated - we will necessarily add information about the new calendar there. 

dhxcalendar has  the following default format:
   
    %d/%m/%Y

And it can be changed by setDateFormat method:

    grid.setDateFormat(new_format);