Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Oct 28, 2008 22:04
open dhtmlx forum
dhxCalendarA to current date

Thanks for this solution.

I have a null value in my column. when used with null value i still get date of 1970 not the current date. If the column value is empty then it shows current date.

Can you help me in fixing this problem.

Answer posted by Support on Oct 29, 2008 06:10
If you are using not empty value - it parsed as date. Null can't be correctly parsed, and calendar fallback to minimal date. 
You can add next line at dhtmlxgrid_excell_dhxcalendar.js

 eXcell_dhxCalendar.prototype.setValue = function(val){
       if (val=="null") val=""; //can be added to fix your problem