Index: includes/date_api_argument_handler.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/date/includes/date_api_argument_handler.inc,v
retrieving revision 1.1.2.47
diff -u -p -r1.1.2.47 date_api_argument_handler.inc
--- includes/date_api_argument_handler.inc	28 Dec 2010 15:32:56 -0000	1.1.2.47
+++ includes/date_api_argument_handler.inc	28 Dec 2010 21:18:36 -0000
@@ -50,6 +50,7 @@ class date_api_argument_handler extends 
     $options['year_range'] = array('default' => '-3:+3');
     $options['date_method'] = array('default' => 'OR');
     $options['granularity'] = array('default' => 'month');
+    $options['summary_display_format'] = array('default' => '');
 
     return $options;
   }
@@ -77,6 +78,20 @@ class date_api_argument_handler extends 
       '#default_value' => $this->options['year_range'],
       '#description' => t("Set the allowable minimum and maximum year range for this argument, either a -X:+X offset from the current year, like '-3:+3' or an absolute minimum and maximum year, like '2005:2010'. When the argument is set to a date outside the range, the page will be returned as 'Page not found (404)'."),
     );
+
+    $formatters = date_get_format_types();
+    $format_options = array();
+    foreach ($formatters as $name => $field) {
+      $format_options[$name] = $field['title'];
+    }
+
+    $form['summary_display_format'] = array(
+      '#title' => t('Summary display format'),
+      '#type' => 'select',
+      '#options' => $format_options,
+      '#default_value' => $this->options['summary_display_format'],
+      '#description' => t('A user-defined date format. See the <a href="@url">PHP manual</a> for available options.', array('@url' => 'http://php.net/manual/function.date.php')),
+    );
     
     $fields = date_api_fields($this->definition['base']);
     $options = array();
@@ -169,12 +184,12 @@ class date_api_argument_handler extends 
       return !empty($this->options[$this->option_name]) ? $this->options[$this->option_name] : 'Y-m';
     }
   }
-    
+
   /**
    * Provide a link to the next level of the view from the summary.
    */
   function summary_name($data) {
-    $format = $this->date_handler->views_formats($this->options['granularity'], 'display');
+    $format = variable_get('date_format_' . $this->options['summary_display_format'], '');
     $value = $data->{$this->name_alias};
     $range = $this->date_handler->arg_range($value);
     return date_format_date($range[0], 'custom', $format);
