lblDate.Text = DateTimePicker1.Value.Today
How can i get only the date in a variable or textbox from a datetimepicker?
That's very bad code. It would only compile with Option Strict Off for a start. If you wanted a String then you would either get the Text property of the control or else call ToString or the like on the DataTime that you get from the Value property, as has been shown.you can retrieve it in string also..
Dim idate As String
idate = DateTimePicker1.Value
wgel.