I have a String
data like this.
String date="20170204";
the date format is - yyyymmdd
I have to set another integer variable according to the days of the week, i.e.
int day=1;
1 if Monday, 2 if Tuesday and so on. How can I do that in java 1.6?