lblDate.Text = DateTimePicker1.Value.Today
To get it in the DTP itself, set the format to Custom, and write your own formatting string. To put a customised form of the date into a label or textbox string, use the .Value property of the datetimepicker which will give you the DATE value in the control. You can then ToString() this: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