Conversion of Number Into Date

how to convert number into date (DD/MM/YYYY)

example customer want billing cycle to be 31. i want uipath code to pick system date and display as 31/10/2018

Use Today.tostring(“dd/MM/yyyy”)

If you want date received from user

DateString1 =“31”
DateString1 + Today.tostring("/MM/yyyy")


Alternatively, it might be better coding to change the day as a date time type.

you can do that like this:

New DateTime(Year(Today), Month(Today), 31)

That returns a datetime type. If you want to output it as a string, then use .ToString("dd/MM/yyyy")

But there are multiple methods you can use and so I’m not saying there is a wrong way.