how to increment and decrement date in android ? : I am newbie to android.I have to create a app which displays current date.On forward swiping date should be incremented and on backward swiping date should be decremented.

I am succeeded in displaying current date and increment on swiping forward.But i donno how to decremnt on swiping backward in single activity.

Here is my code.

TAB activity

    SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
            Calendar c = Calendar.getInstance();
            c.add(Calendar.DAY_OF_MONTH,position);
            String dte = sdf.format(c.getTime()).toString();
            TextView textView2 =  getView().findViewById(R.id.textView2);
            textView2.setText(dte);
        }
    }


         
