Reputation: 7160
I assumed that if "fff" works in DateTime.ToString then it would work in the custom format string for a DateTimePicker, but it appears this is not the case.
I understand that there may not be an immediate solution, but this really isn't a critical problem, so what is a viable alternative?
A few ideas I had:
Upvotes: 2
Views: 6634
Reputation: 7160
I ended up using a MaskedTextBox as it was quick and easy to put in the date/time format. I then added a simple button to the side which popped up a calendar in the same way that a DateTimePicker does.
Upvotes: 2
Reputation: 64467
There might be something available for free on the net:
http://www.codeproject.com/KB/cs/Time_Picker.aspx
You are correct, the DateTimePicker does not natively support it so you need to choose one of your ideas.
Upvotes: 1