Format Date in UiPath Studio

In this post, we will get today’s date and format it to “dd-MM-yyy“. Add a new assign activity. Create a new variable “todaysDate“. Enter the following expression in the value.

Date.Now().ToString("dd-MM-yyyy")

This is how it will look like in the UiPath Studio.

I have also added a Write Line activity to print todaysDate onto the console.

Thank you All!!! Hope you find this useful.


Leave a Reply

Up ↑

Discover more from JD Bots

Subscribe now to keep reading and get access to the full archive.

Continue reading