How do I hide the seconds in the DateTime Picker. I don't want the user to be able to change the seconds or even see the seconds.
I would like it so that when the application is run in the date time picker it displays at "16:30" instead of "16:30:30"
Please Help :-)
3 replies to this topic
#1
Posted 27 June 2011 - 05:45 AM
|
|
|
#2
Posted 27 June 2011 - 06:15 AM
dateTimePicker1.Format = DateTimePickerFormat.Custom; dateTimePicker1.CustomFormat = "HH:mm";
#3
Posted 27 June 2011 - 08:04 AM
Momerath said:
dateTimePicker1.Format = DateTimePickerFormat.Custom; dateTimePicker1.CustomFormat = "HH:mm";
Thanks works great. :-)
#4
Posted 27 June 2011 - 08:20 AM
DateTime.Now.ToShortTimeString();works too
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









