rem:  var startDate = document.getElementById( "start-date-picker" ).value; var endDate = document.getElementById( "end-date-picker" ).value; 
add: var startDate = document.getElementById( "start-datetime" ).value; var endDate = document.getElementById( "end-datetime" ).value; 
context: function checkEndDate(){   // Bad to get into floats.   var startDate = document.getElementById( "start-date-picker" ).value;    var endDate = document.getElementById( "end-date-picker" ).value;       if( startDate.getFullYear() == endDate.getFullYear() &&       startDate.getMonth() == endDate.getMonth() &&       startDate.getDay() == endDate.getDay() )      return( 0 );   else if ( endDate < startDate)      return -1;   else if (endDate > startDate)      return 1;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/10a3489e96ace17cc6ecc1f80442d0bb5d77bf82/eventDialog.js/buggy/calendar/resources/content/eventDialog.js