How to store current date into a string variable

Hello everyone,

I am trying to make the uipath studio to always key in current date in a text field. But I am having an error where the UIPath studio doesn’t recognize my code expression.

If I’m not wrong this should have been a valid VB expression for assigning date into a string variable. Could somebody show me the right way of doing this? I would appreciate the help.

Thank you,
Hariz

Hi! Please use this code.!

datetime.Now.ToString(“dd-MM-yyyy”)

Thanks!

4 Likes

Thank you so much @kadiravan_kalidoss. it worked flawlessly

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