String text= "2011-11-19T00:00:00.000-05:00";
I have the above String .
As the date above is not in RFC format , i want to remove the colons in the string at 05:00
So taht the actual string will look like
String text= "2011-11-19T00:00:00.000-0500";
Since it’s the last occurrence of the colon in your string, you could do something like this:
This will create a new string without the last occurrence of the colon.