I’m using C# .NET and I have a Windows Form with a DateTimePicker.
My question is: how can I display the hours and the minutes (for the user to change) along with the year, month, and day?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check out the CustomFormat property: http://msdn.microsoft.com/en-us/library/system.windows.forms.datetimepicker.customformat.aspx
It allows you to set the format however you’d like. Also, to make it apply, you’ll have to set the DatetimePicker.Format to Custom.
EDIT: If you provide a better idea/example of the format you want displayed, I can help with the actual format string.