How to have a right date format

Hi All,

Can you please advise,

I have a value which represent a date in the following format
21-10-2020
sadf
How can I change it into format MM/dd/yyyy so at the end I wnat to have 10/21/2020

@niteckam

Check below

https://forum.uipath.com/t/convert-date-time-format-tutorial/242670/2

Follow Link

Hope this helps you

Thanks

Hey niteckam.

DateTime.ParseExact(“22-11-2020”,“dd-MM-yyyy”,system.Globalization.CultureInfo.InvariantCulture).ToString(“MM/dd/yyyy”)

Kind regards, Anders

3 Likes

Hi @niteckam ,

Here is an activity called “Format Cell”. You can use this activity to implement the exact feature what you have in Excel. Here is the video for the demonstration.

Here you can download the sample.

Thank you
Balamurugan.S