Velocity script to return the last two characters in a string
I have an existing lead field that contains the value for a specific month, presented as YYYY-MM.
From this, I want to set up a script token that only returns the value for the month, irrespective of which year is indicated. I have the section of script to translate the MM value into "January", but I am struggling to strip the year indicator from the original value.
I looked into substring and truncate options, but have not found a working solution.
Does anyone have a suggestion?