Time Setting In Word

Hello guys

I want to show the date only in the Word document, but now it shows the time also. I want to indicate to RPA that only shows the date but not the time, but why is does not work?


I want to delete the time
image

Hi @CHAN_Hiu_Fung_Victor_Stud

Could you try the below one,

Cdate(ApplistDT.rows(IndexDT).Item("Date of received")).tostring("dd-MM-yyyy")

In the above expression you are converting the datetime system format (MM/dd/yyyy hh:mm:ss) to the required string format with the specified time format (dd-MM-yyyy).

You can check the below image the above expression working fine,

Hope it helps!!

1 Like

Here’s a concise response to your query:

Displaying Date Only in Word (UiPath):

  1. Use “Write Text” with “Get Text” (Custom format: “dd/MM/yyyy”).
  2. Insert {Date} and format in Word (“Field Options” → Date & Time category).

Creating Date (C#):

string formattedDate = DateTime.Today.ToString("yyyy-MM-dd"); // Adjust format

Choose the approach that suits your workflow and adjust date formats as needed. This ensures only the date appears in your Word document.

It works!! Thank you so much

1 Like

It’s my pleasure… @CHAN_Hiu_Fung_Victor_Stud

Happy Automation!!

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