How to change format in html file

I want to change format date in html file (.txt) from 02/01/2020 00:00:00 to 02/01/2020

Please guide me about it.
Kindly find attached txt file.

file test.txt (1.6 KB)

@fairymemay
With the assumption that you want to change the HTML content, especially the date value, have a look on the XML functionalities from UiPath / .Net.

Here you can Parse the HTML as XML with the deserialize XML Activity. Then you can retrieve the value and update it.

Let us know if you need more help on this

1 Like

Hi @fairymemay

If you want to remove time from the HTML file follow the below steps

  • Use Read text file activity to read the file store the output in a variable ‘readTxt’
  • Assign like below

readTxt = readTxt.Replace("00:00:00",string.Empty)

  • Create a file using Write text file activity as html
    input text : readText
1 Like

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