Dela via


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 2008 equivalents.

Note

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

Visual Basic 6.0

Visual Basic 2008 Equivalent

vbGeneralDate

DateFormat.GeneralDate

vbLongDate

DateFormat.LongDate

vbShortDate

DateFormat.ShortDate

vbLongTime

DateFormat.LongTime

vbShortTime

DateFormat.ShortTime

See Also

Reference

DateFormat Enumeration

Other Resources

Constant Equivalents for Visual Basic 6.0 Users

Constants and Enumerations in Visual Basic