rem: if (! dueDate ) calendarToDo.due.clear(); else calendarToDo.due.setTime( dueDate ); 
add: if (dueDate) calendarToDo.dueDate.jsDate = dueDate; 
context: function newToDo ( startDate, dueDate ) {    var calendarToDo = createToDo();       // created todo has no start or due date unless user wants one    if (! startDate )       calendarToDo.start.clear();  else    calendarToDo.start.setTime( startDate );    if (! dueDate )       calendarToDo.due.clear();  else    calendarToDo.due.setTime( dueDate );    var server = getSelectedCalendarPathOrNull();       editNewToDo(calendarToDo, server);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/e83fac781ea3f2e95dbfffb8513f48c3d509f9d7/calendar.js/buggy/calendar/resources/content/calendar.js