String "Date" to Datetime in VB.net

Viewed 25

I get a date and time in string the following format: 20/09/2022 14:39:10

What is the simpest way to convert it to a Datetime.

Dim Date1 as string = "20/09/2022 14:39:10"

Dim Date2 as Datetime =???

Best regards, Tibi

0 Answers
Related