With Deft Fingers, "Barbara Papapetrou" <ab******@otenet.gr> wrote:
I always get 12:00:00 time next to the date in my VB.NET Windows form
application. How can I get only the date to appear?
Several ways...
lblCurrDay.Text = dtpDatePick.Value.ToString("dd/MM/yyyy")
.... (the dtpDatePick is a DateTimePicker)
or
newDate = FormatDateTime(lblCurrDay.Text, DateFormat.ShortDate)
The DateFormat gives you a few options... the first one some other custom
options... Check up on them.
Regards,
Bruce