AFAIK the answer is no. The supported formats are described in the MSDN docmentation for the CustomFormat property. You can't use it for anything more precise than a second.This control wraps the native Windows DateTimePicker control implemented in ComCtl32.dll and only supports format strings supported by that control - the .NET "f" specifier for fractions of a second is not supported. 来自: http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/9c3f9006-dae7-47d8-b736-b0f076995adf
要赋值给dateTimePicker才行,这个赋值报错!
DateTime time = dateTimePicker1.Value; string xx = time.ToString("MM/dd/yyyy hh:mm:ss.fff"); 这样可以显示的了
来自:
http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/9c3f9006-dae7-47d8-b736-b0f076995adf
string xx = time.ToString("MM/dd/yyyy hh:mm:ss.fff");
这样可以显示的了
--:--:--:--:--:--:---: