Specifies the format string used for date literals. The default value of this property is "M/d/yyyy".
The following date format specifiers are supported:
Format Specifier
Description
M
The month number with no leading zero
MM
The month number with a leading zero if the month number is less than 10
d
The day number with no leading zero
dd
The day number with a leading zero if the day number is less than 10
yy
The last two digits of the year number with a leading zero (see the TwoDigitYearCenturyWindow property)
yyyy
The full four digits of the year number
For date/time literals, the ShortDateFormat is used in conjunction with the ShortTimeFormat property, with a space separating the two.
When specifying a ShortDateFormat that uses a different date separator character, please make sure that you modify the DateSeparator property before setting the new ShortDateFormat value.