This documentation is archived and is not being maintained.

Date Format Constants for Visual Basic 6.0 Users 

The following table shows the Visual Basic 6.0 Date Format constants and their Visual Basic 2005 equivalents.

NoteNote

For backward compatibility, you can still use Visual Basic 6.0 Date Format constants in Visual Basic 2005 code. For more information, see DateFormat Enumeration.

Visual Basic 6.0 Visual Basic 2005 Equivalent

vbGeneralDate

DateFormat.GeneralDate

vbLongDate

DateFormat.LongDate

vbShortDate

DateFormat.ShortDate

vbLongTime

DateFormat.LongTime

vbShortTime

DateFormat.ShortTime

Show: