Question: how to convert textbox value into date in vb.net?
Answer: Option Explicit. Private Sub Command1_Click() Dim a As String. Dim b As Date. a = "20110901" '~~~ Sample string. b = DateSerial(Mid$(a, 1, 4), Mid$(a, 5, 2), Mid$(a, 7, 2)) '~~~ Converting it into a date format. MsgBox Format$(b, "mm/dd/yyyy") '~~~ Display this converted date in whatever format you want. End Sub.