BUG: DateTimePicker's CustomFormat May Be Ignored
Article ID: 187233
Article Last Modified on 5/13/2003
APPLIES TO
- Microsoft Visual Basic 6.0 Learning Edition
- Microsoft Visual Basic 6.0 Professional Edition
- Microsoft Visual Basic 6.0 Enterprise Edition
This article was previously published under Q187233
SYMPTOMS
You have a DataTimePicker control's CustomFormat property set, but when you
set the Format property to dtpCustom, the CustomFormat is not used.
RESOLUTION
When you set a DateTimePicker's Format property to dtpCustom, you must
follow this by assigning the CustomFormat property, even if it already
contains a valid format string. This assignment to CustomFormat may be a
new string value or it may be assigned to itself.
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
186424
: INFO: DateTimePicker CustomFormat Is Case-Sensitive
Additional query words: kbDSupport kbDSD kbCtrl kbUsage kbCommon kbVBp600
Keywords: kbbug KB187233