I have a string that comes in the format name = "1/2/2021", how can I convert this string to the format newName = "2021-2-1"
name = "1/2/2021"
newName = "2021-2-1"