In my App, I am using Calendar View. So , I have drawn a custom Calendar View using this tutorial. As I want the selected date format in dd-MM-yyyy
so for this I have changed this line
df = new SimpleDateFormat("yyyy-MM-dd", Locale.US);
into this,
df = new SimpleDateFormat("dd-MM-yyyy", Locale.US);
And after changing that line when I run my App I got this output,
but when I select any cell its gives correct format of date,
Where am I wrong ?
The whole code is same as tutorial. I've just changed one line.
Please help.
Thanks.