I'm trying to extract part of a string in Groovy. Can't seem to get the syntax right.
For example: def string = "this is a new string"
What I want is a string that says "a new string"
def string1 = string.subString(8) just gives me an error.
Can someone point me in the right direction please.
It was a dateTime which I mistakenly thought was in string format. Serves me right for not checking better to start with. I was mainly just doing some experimenting with an app so it wasn't a big deal. Sure appreciate all the help.