Open anirudhmaddy opened 7 years ago
same to me, did u solve the problem now @anirudhmaddy ?
I was having this problem as well. I then found out that my dateString that I was parsing with SimpleDateFormat was actually not the right format.
Example:
String dateString = 2019-01-08 //I had thought this was actually 01-08-2019
SimpleDateFormat sdf = new SimpleDateFormat("MM-dd-yyyy")
Date date = sdf.parse(dateString);
After correcting the date format string to yyyy-MM-dd
the calendar set the colors properly!!
Below is my code: