Convert Today's Date to MM/DD/YY format

I am trying to store today’s date in the MM/DD/YY format as a variable. I have found ways to store as MM/DD/YYYY, but could not find anything for just the shortened year.

Thanks

1 Like

now.Date.ToString(“MM/dd/yyyy”)

use assign activity to create a variable and use the expression above to store today’s date in a variable

1 Like

Hi @RPANovice1,
Please check this link
It will surely help you.

Hi @RPANovice1

You can get this by
YourVariable=Datetime.now.tostring(“mm/dd/yy”)

Thanks

1 Like

Thank you, this was simple and worked, except I had to capitalize the MM as mm is minutes.

Great.

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