# VbDateTimeFormat
{: .no_toc }

Format codes for the [**FormatDateTime**](/tB/Modules/Strings/FormatDateTime.md) function.

| Constant | Value | Description |
|----------|-------|-------------|
| **vbGeneralDate**{: #vbGeneralDate } | 0 | Display a date and/or time. For real numbers, display a date and time; if there is no fractional part, display a date only; if there is no integer part, display a time only. Date and time display is determined by the system settings. |
| **vbLongDate**{: #vbLongDate } | 1 | Display a date in the long date format specified by the system regional settings. |
| **vbShortDate**{: #vbShortDate } | 2 | Display a date in the short date format specified by the system regional settings. |
| **vbLongTime**{: #vbLongTime } | 3 | Display a time in the long time format specified by the system regional settings. |
| **vbShortTime**{: #vbShortTime } | 4 | Display a time in the short time format specified by the system regional settings. |

### See Also

- [FormatDateTime](/tB/Modules/Strings/FormatDateTime.md) function
