How to convert date format in a string

Hi All, Happy Christmas, I am trying to convert from “jan/02/2019” to 02/01/2019. But i am not getting the right result. My output was 02/0019, month is not converting to the numbers.
below is my piece of code. Could you please help me with this.

Convert.ToDateTime(pragnya).ToString(“dd/mm/yy”)
(pragnya is the variable i have created to store the values)
image

Hi,

Try this

Thanks

Hi
Welcome to UiPath community
You were almost done

Your expression is correct but instead of lower case mm use upper case MM

As mm is for minutes and MM is for Month
Like this
.ToString(“dd/MM/yyyy”)

Cheers @manojprabhakaran

Many thanks mate.

Many thanks mate, all good

Cheers @manojprabhakaran