Target to modify:
Sample ="FST~C~D~170101 FST~C~D~170102 FST~C~D~170103 FST~C~D~170104"
I want to replace "170101","170102","170103","170104" with "170413", "170414","170415","170416"(the current date and days behind) The output should be:
"FST~C~D~170413 FST~C~D~170414 FST~C~D~0415 FST~C~D~170416"
I tried with replace()
but failed. I know it is due a "string" is not allowed to be modified. Anyone can help on this!