Icon ShortDateFormat Property

property ShortDateFormat: String

Available In: Client and Server Applications

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 SpecifierDescription
MThe month number with no leading zero
MMThe month number with a leading zero if the month number is less than 10
dThe day number with no leading zero
ddThe day number with a leading zero if the day number is less than 10
yyThe last two digits of the year number with a leading zero (see the TwoDigitYearCenturyWindow property)
yyyyThe full four digits of the year number

Information For date/time literals, the ShortDateFormat is used in conjunction with the ShortTimeFormat property, with a space separating the two.

Warning 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.
Image