How to parse March 13, 2018 to normal date format(MM/dd/yyyy). can anyone help me with this

How to parse March 13, 2018 to normal date format(MM/dd/yyyy). can anyone help me with this.

Hi @JKakumanu
Welcome to forum

Assuming that March 13, 2018 is stored in string variable date_1

Now use the following assign activity to change the format

date_2=DateTime.ParseExact(date_1,“MMMM dd, yyyy”,System.Globalization.CulturalInfo.InvariantCulture).ToString(“MM/dd/yyyy”)

Regards,
Nived N
Happy Automation

1 Like

Welcome to community @JKakumanu ,

You can use Date.Parse(“March,13,2018”).ToString(“MM/dd/yyyy”). Try this one as well.

Happy Automation