public void goToCurrentDay(){
  int monthDifference=FlexibleCalendarHelper.getMonthDifference(displayYear,displayMonth);
  Calendar cal=Calendar.getInstance();
  selectedDateItem.setDay(cal.get(Calendar.DAY_OF_MONTH));
  selectedDateItem.setMonth(cal.get(Calendar.MONTH));
  selectedDateItem.setYear(cal.get(Calendar.YEAR));
  if (disableAutoDateSelection) {
    this.userSelectedItem=selectedDateItem.clone();
  }
  if (monthDifference != 0) {
    resetAdapters=true;
    if (monthDifference < 0) {
      monthInfPagerAdapter.setFakeCount(lastPosition);
      monthInfPagerAdapter.notifyDataSetChanged();
    }
    shouldOverrideComputedDate=true;
    moveToPosition(monthDifference);
  }
 else {
    FlexibleCalendarGridAdapter currentlyVisibleAdapter=monthViewPagerAdapter.getMonthAdapterAtPosition(lastPosition % MonthViewPagerAdapter.VIEWS_IN_PAGER);
    currentlyVisibleAdapter.notifyDataSetChanged();
  }
}

public void goToCurrentDay ( ) { int monthDifference = FlexibleCalendarHelper . getMonthDifference ( displayYear , displayMonth ) ; Calendar cal = Calendar . getInstance ( ) ; selectedDateItem . setDay ( cal . get ( Calendar . DAY_OF_MONTH ) ) ; selectedDateItem . setMonth ( cal . get ( Calendar . MONTH ) ) ; selectedDateItem . setYear ( cal . get ( Calendar . YEAR ) ) ; if ( disableAutoDateSelection ) { this . userSelectedItem = selectedDateItem . clone ( ) ; } if ( monthDifference != 0 ) { resetAdapters = true ; if ( monthDifference < 0 ) { monthInfPagerAdapter . setFakeCount ( lastPosition ) ; monthInfPagerAdapter . notifyDataSetChanged ( ) ; } shouldOverrideComputedDate = true ; moveToPosition ( monthDifference ) ; } else { FlexibleCalendarGridAdapter currentlyVisibleAdapter = monthViewPagerAdapter . getMonthAdapterAtPosition ( lastPosition % MonthViewPagerAdapter . VIEWS_IN_PAGER ) ; currentlyVisibleAdapter . notifyDataSetChanged ( ) ; } }
move the position to today ' s date
