Replace existing date with current date and last month date for multiple times in notepad

hi fnds,

i want to Replace existing date with current date for multiple times in notepad…

how to change the date to existing date
Time stamp Todate 20190505-----------last month-date
Enddate Timestamp 20190605---------current date
Time stamp Todate 20190505-----------last month-date
Enddate Timestamp 20190605---------current date
Time stamp Todate 20190505-----------last month-date
Enddate Timestamp 20190605---------current date
Time stamp Todate 20190505-----------last month-date
Enddate Timestamp 20190605---------current date



@venkateshtangudu Read the text file and store into a string type of a variable. Lets say you stored into a variable- textContent

use assign activity
textContent = textContent.Replace("20190605", Now.ToString("yyyyMMdd"))

Cheer!!

textContent = textContent.Replace("20190605", Now.ToString("yyyyMMdd"))

20190605-----will be not constant it will be changing every month in my note pad…

how i can do that

It is okay. Look for Enddate Timestamp and replace date using string manipulation which is at the third position or find the numbers in the same line using regex and replace with the date.