I am using DatePickerDialog. But month name are showing wrong, i.e. instead of January 2019 it is showing 2019 M01 and February as 2019 M02 and so on. My problem is that default view for calendarView is showing the month numbers like that, i am not changing or setting anything in this views, normally it must show something like : 2019 January.
How can i fix this issue?
My Layout:
<CalendarView
android:id="@+id/calender"
android:layout_width="320dp"
android:layout_height="300dp"/>
My Code:
CalendarView calendarView = view.findViewById(R.id.calender);
calendarView.setOnDateChangeListener(new CalendarView.OnDateChangeListener() {
@Override
public void onSelectedDayChange(@NonNull CalendarView view, int year, int month, int dayOfMonth) {
saveDate(year, month, dayOfMonth);
}
});