I really don'n know how to pass my calenderview data to another activity. I use setonDateChangeListener and i want to pass this date to another activity. please help me
eventButton.setOnClickListener(v -> {
Calendar calendar = Calendar.getInstance();
calendar.setTime(date);
String selectyear = Integer.toString(calendar.get(Calendar.YEAR));
String selectmonth = Integer.toString(calendar.get(Calendar.MONTH + 1));
String selectday = Integer.toString(calendar.get(Calendar.DATE));
Intent intent = new Intent(getApplicationContext(), EventActivity.class);
intent.putExtra("year", selectyear);
intent.putExtra("month", selectmonth);
intent.putExtra("day", selectday);
startActivity(intent);
});