Question: how to convert string date to yyyy mm dd format in vb.net?
Answer: Sub convertToDate() Try. Dim stringDate As String = "2019-03-03 12:00 PM" Dim convertedDate As DateTime = DateTime. ParseExact(stringDate, "yyyy-MM-dd HH:mm tt", Nothing) Catch ex As Exception. MessageBox. Show(ex. Message) End Try. End Sub.