Change String Date into another String Date

Hi everyone,

I have a string date in the next format : 1-sep-2023 or 27-nov-2023 there are a few examples.

But, I wanna change this format into another string format date “dd.MM.yyyy”.

Any suggestions??

Hi,

Can you try the following expression?

 DateTime.ParseExact(yourString,"d-MMM-yyyy",System.Globalization.CultureInfo.InvariantCulture).ToString("dd.MM.yyyy")

Regards,

1 Like

Hi @marquezd ,
You can try
Cdate(YourString).Tostring(“dd.MM.yyyy”)
regards,

1 Like

Tnks you guys it works with both solutions

Cheer @marquezd ,
Happy automation!

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