"How to Convert Dates in Various Unknown Formats to dd.MM.yyyy in UiPath?"

Hi @Valigatla_Revathi How are you?

Try do it below:

  1. create a variable as DateTime, such as “parseDate”
  2. Get your date that you want to convert
  3. use this expression in the IF activitie “DateTime.TryParse(dateString, parsedDate)”
    • This expression will try interpret date in various format
  4. use the assign activity with this command: newDateFormat = parsedDate.ToString(“dd.MM.yyyy”)

I hope it works to you :robot: