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

@aalaghbari

Try this.

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

Thanks a lot.

1 Like

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