Get value for drupal date pager next or prev or current I am looking around a way to get the date pager next/prev/current value inside the current view.I am listing events in a month and have used date pager.Display is of month type so in header it shows the month value.and in the next and prev it shows the next month. I need to know the value for the pager navigation.
Thanks in advance.
Arpit
I found a work around, keeping in mind that the pager works for calendar view by changing date in the URL.

I created a custom form with fields as day, month, year whose field type is select (dropdown).

This is the code for the form and the submission handler.

function mymodule_get_event_view_date_filter($form, &amp;$form_state) {
  $form = array();
  $year = date('Y');
  $year_options = array(
    $year - 4 =&gt; t($year - 4),
    $year - 3 =&gt; t($year - 3),
    $year - 2 =&gt; t($year - 2),
    $year - 1 =&gt; t($year - 1),
    $year =&gt; t($year),
    $year + 1 =&gt; t($year + 1),
    $year + 2 =&gt; t($year + 2),
    $year + 3 =&gt; t($year + 3),
    $year + 4 =&gt; t($year + 4),
  );
  $month = date('m');
  $month_options = array(
    '1' =&gt; 'Jan',
    '2' =&gt; 'Feb',
    '3' =&gt; 'March',
    '4' =&gt; 'April',
    '5' =&gt; 'May',
    '6' =&gt; 'June',
    '7' =&gt; 'July',
    '8' =&gt; 'Aug',
    '9' =&gt; 'Sep',
    '10' =&gt; 'Oct',
    '11' =&gt; 'Nov',
    '12' =&gt; 'Dec',
  );
  $form['event-date-container'] = array(
    '#type' =&gt; 'container',
    '#prefix' =&gt; '&lt;div id="event-date-container"&gt;',
    '#suffix' =&gt; '&lt;/div&gt;',
  );
  $form['event-date-container']['year'] = array(
    '#type' =&gt; 'select',
    '#options' =&gt; $year_options,
    '#prefix' =&gt; '&lt;div id="event-year"&gt;',
    '#default_value' =&gt; isset($_SESSION['event']['year']) ? $_SESSION['event']['year'] : $year,
    '#suffix' =&gt; '&lt;/div&gt;',
  );
  $form['event-date-container']['month'] = array(
    '#type' =&gt; 'select',
    '#options' =&gt; $month_options,
    '#prefix' =&gt; '&lt;div id="event-month"&gt;',
    '#default_value' =&gt; isset($_SESSION['event']['month']) ? $_SESSION['event']['month'] : $month,
    '#suffix' =&gt; '&lt;/div&gt;',
  );
  $form['event-date-container']['submit_form'] = array(
    '#type' =&gt; 'submit',
    '#value' =&gt; t('Apply'),
    '#submit' =&gt; array('_mymodule_event_view_date_submit'),
  );
  unset($_SESSION['event']);
  return $form;
}

function _mymodule_event_view_date_submit($form, $form_state) {
  global $base_url;
  $_SESSION['event']['year'] = $form_state['values']['year'];
  $_SESSION['event']['month'] = $form_state['values']['month'];
  drupal_goto('calendar-node-field-event-date/month/' . $form_state['values']['year'] . '-' . $form_state['values']['month']);
}


Now call this form in your calendar view in view header print.

drupal_render(drupal_get_form(mymodule_get_event_view_date_filter));