Link to home
Create AccountLog in
Avatar of JMO9966
JMO9966

asked on

How to convert VB.Net DateTimePicker value to Date only format ?

I'm looking for a way to extract only the Date value out of a VB.Net DateTimePicker control's value.

I tried what I know with ToString and Format but couldn't get mine to fly.

Thanks,
JMO9966
ASKER CERTIFIED SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
or like:

Dim d As New Date(DateTimePicker1.Value.Year, DateTimePicker1.Value.Month, DateTimePicker1.Value.Day)

MessageBox.Show(d)
...