i have this
String prueba = "25 - 2 - 2015";
And lets suppose its
25: Day
2: Month
2015: Year
So i wanna get this
String year = "2015";
String month = "2";
String day = "25";
The Problem its the "Month" can have more than one character
(example nov has "11" and jan has "1")
and day too ( can we have day "1" or day "25") so in this case substring its imprecise so i need to cut them stopping in the dashes
So how can i cut the prueba String into 3 variables between dashes? Thanks !
Note: Sorry about my english.-