How to convert string to date format("dd/MM/yyyy")

Hello @roysupriya21

A simple solution to this problem would be to create an Array of string Datatype variable and store all the available datetime format in your case

Arr_of_String_ = {"dd/MM/yyyy","ddM/yyyy"}

than use this code to get the desired date in string

DateTime.ParseExact(DateinStringvariable,Arr_of_strrr,Globalization.CultureInfo.CurrentUICulture.DateTimeFormat,nothing).ToString("dd-MM-yyyy")

Check this workflow and post for better understanding

Multiple Date formats.xaml (4.8 KB)