Change Date Format From String Variable

Hi,
Please I need your support, I have a date in a string variable with the following format “yyyy-MM-dd” I want to change the format to “dd-MM-yyyy”.

@aalaghbari

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

Convert.ToDateTime("StringVariable").ToString("dd-MM-yyyy")

Hope this helps you

Thanks

1 Like

@aalaghbari

Try this.

            CDate(strDate).ToString("dd-MM-yyyy")
1 Like

Thanks a lot.

2 Likes

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