Public Class Form1
Private Sub btnShow_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnShow.Click
Dim currDate As Date
Dim ADate As String
currDate = FormatDateTime(dtDateA.Text, DateFormat.ShortDate)
ADate = currDate.Year & "-" & currDate.Month & "-" & currDate.Day
txtadd.Text = ADate
MessageBox.Show(txtadd.Text)
End Sub
End Class