--- multiforms_ui.module	2007-10-16 11:05:56.000000000 -0700
+++ /somedir/multiforms_ui.module	2007-12-20 11:04:57.000000000 -0800
@@ -274,8 +274,8 @@ function _multiforms_ui_check_close_stat
   $closed = FALSE;
 
   if (_multiforms_get_property($multiform_id, 'multiform_closing_enabled')) {
-    $closing_date = _multiforms_get_property($multiform_id, 'multiform_closing_date');
-    $current_date = date('n-j-Y');
+    $closing_date = str_replace("-","/",_multiforms_get_property($multiform_id, 'multiform_closing_date'));
+    $current_date = date('n/j/Y');
 
     if ($closing_date == $current_date) {
       // if today is the closing date and no time is set, close...
@@ -288,7 +288,7 @@ function _multiforms_ui_check_close_stat
       } else {
         $closed = TRUE;
       }
-    } elseif (_multiforms_date_array_greater(explode('-', $current_date), explode('-', $closing_date))) {
+    } elseif (_multiforms_date_array_greater($current_date, $closing_date)) {
       $closed = TRUE;
     }
   }
@@ -1067,10 +1067,8 @@ function _multiforms_return_existing_sec
 
 function _multiforms_date_array_greater($this_date, $that_date) {
 
-  for ($index = 0; $index < sizeof($this_date); $index++) {
-    if ($this_date[$index] > $that_date[$index]) {
-      return 1;
-    }
+  if (strtotime($this_date) > strtotime($that_date)) {
+    return 1;
   }
 
   return 0;
