I have my date in this format yyyy-mm-dd and I save the date in this format as a String. Now I have the String and I want to know how can I get yyyy, mm or dd in 3 different String.
I have my date in this format yyyy-mm-dd and I save the date in
Share
If you know for sure that every single time it will be in that same format you can do a string split on that string, and get the values from the resulting array.
This won’t work if your date ends up in a different format.