Replace the date multiple times in notepad

Hi fnds,

I’m having scenario…please kindly help me…
i want to replace the date multiple times in loop…

Time stamp Todate 5/6/2019
End Time stamp Todate 5/7/2019
Time stamp Todate 5/6/2019
End Time stamp Todate 5/7/2019
Time stamp Todate 5/6/2019
End Time stamp Todate 5/7/2019
Time stamp Todate 5/6/2019
End Time stamp Todate 5/7/2019


multiple lines

1 Like

Hi
replace with what?

@venkateshtangudu

Could you please tell more details about the issue. You want to replace date with what ?

Hi @venkateshtangudu

Easiest way would be to read the data in the notepad to a String variable. Then use the below command to replace the date with what you want. One command will replace all of its occurrences in the string

YourStringVariable.Replace(ReplaceDate.ToString, “abcd”)

Hi

if i want to replace with system current date…how should i write

i want to replace it with current date…

Time stamp Todate…current date
end time stamp to…last month date

hi Ashley,

i want to replace 2 lines…

Timestamp Todate…to current date
End time stamp todate…last month date

hii

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

how to change the date to existing date multiple times in notepad
Time stamp Todate 20190605-------current date
Enddate Timestamp 20190705------last month date
Time stamp Todate 20190605-------current date
Enddate Timestamp 20190705------last month date
Time stamp Todate 20190605-------current date
Enddate Timestamp 20190705------last month date
Time stamp Todate 20190605-------current date
Enddate Timestamp 20190705------------last month date

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

hi, @venkateshtangudu
please find the attached XAML.
let me know if that solved your issue , if that helped pls let me know.

hope this helps.

Regards
Ashley Nihal Dcunha
Date_Replace.zip (11.6 KB)

1 Like

solved thanks

1 Like

the xaml what i sent you isn’t giving you the results?

1 Like

hii,

its giving…but i’m unable to change in the above format

ok you want it in yyyyMMdd format?
can you pls give me the input as a text file so that i can modify the XAML

solved thanks

2 Likes

hii

Can you see my file…\

hi
Date_Replace (2).zip (11.7 KB)

3 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.