I have two String .
String str1="01/12/2016"
I want to convert into another String str2="20161201"
One way I can think of is to split the string and then append from backwards to generate this new string. Is there any easy way one can make it ?
and ...
String str3="13/12/2016"
I want to convert into another string str4="20161214"
I can think of it as split and then add like this ...
"2016"+"12"+ "convert to integer (13) + 1"
Is there any easy way one can make it ?