How to convert string to date format

how to split the date
10/18/2022 00:00:00
From above I need only 10/18/2022 the variable type is DateTime